运行 ID: 36433

Main.cc:7:10: error: ‘s’ was not declared in this scope
 bool cmp(s a,s b){
          ^
Main.cc:7:14: error: ‘s’ was not declared in this scope
 bool cmp(s a,s b){
              ^
Main.cc:7:17: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(s a,s b){
                 ^
Main.cc: In function ‘int main()’:
Main.cc:14:9: warning: unused variable ‘score’ [-Wunused-variable]
  double score;
         ^~~~~
Main.cc:20:11: error: ‘n’ was not declared in this scope
  sort(a,a+n,cmp);
           ^