运行 ID: 35154

Main.cc: In function ‘int main()’:
Main.cc:24:3: error: expected primary-expression before ‘int’
   int k=1;
   ^~~
Main.cc:25:15: error: ‘k’ was not declared in this scope
   while((w1-a[k].w)>=0&&k<=s){
               ^
Main.cc:30:11: error: ‘k’ was not declared in this scope
   if(w1