运行 ID: 436169

Main.cc:3:1: error: ‘struck’ does not name a type; did you mean ‘struct’?
 struck hsb{
 ^~~~~~
 struct
Main.cc:6:2: error: ‘a’ does not name a type
 }a[10086];
  ^
Main.cc:7:10: error: ‘hsb’ was not declared in this scope
 bool cmp(hsb x,hsb y){
          ^~~
Main.cc:7:16: error: ‘hsb’ was not declared in this scope
 bool cmp(hsb x,hsb y){
                ^~~
Main.cc:7:21: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(hsb x,hsb y){
                     ^
Main.cc: In function ‘int main()’:
Main.cc:14:9: error: ‘a’ was not declared in this scope
    cin>>a[i].w>>a[i].v;
         ^
Main.cc:17:8: error: ‘a’ was not declared in this scope
   sort(a+1,a+n+1,cmp);
        ^