运行 ID: 46775

Main.cc: In function ‘int main()’:
Main.cc:5:2: error: expected initializer before ‘int’
  int maxn=-1;
  ^~~
Main.cc:7:10: error: ‘m’ was not declared in this scope
  cin>>n>>m;
          ^
Main.cc:22:7: error: expected ‘;’ before ‘}’ token
       }
       ^
Main.cc:24:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
      if(sum=0){
         ~~~^~
Main.cc:26:14: error: ‘maxn’ was not declared in this scope
       if(tmp>maxn)maxn=tmp;
              ^~~~
Main.cc:26:14: note: suggested alternative: ‘main’
       if(tmp>maxn)maxn=tmp;
              ^~~~
              main
Main.cc:32:8: error: ‘maxn’ was not declared in this scope
  cout<