运行 ID: 35142

Main.cc: In function ‘bool cmp(node, node)’:
Main.cc:8:25: error: named return values are no longer supported
 bool cmp(node A,node B) return A.money>B.money;
                         ^~~~~~
Main.cc:12:7: error: ‘n’ was not declared in this scope
  cin>>n;
       ^
Main.cc:14:3: error: ‘ans’ was not declared in this scope
   ans=0;
   ^~~
Main.cc:14:3: note: suggested alternative: ‘abs’
   ans=0;
   ^~~
   abs
Main.cc:15:8: error: ‘w1’ was not declared in this scope
   cin>>w1>s;
        ^~
Main.cc:15:8: note: suggested alternative: ‘y1’
   cin>>w1>s;
        ^~
        y1
Main.cc:15:11: error: ‘s’ was not declared in this scope
   cin>>w1>s;
           ^