运行 ID: 31772

Main.cc:4:1: error: expected initializer before ‘int’
 int n,m;
 ^~~
Main.cc: In function ‘int main()’:
Main.cc:7:7: error: ‘n’ was not declared in this scope
  cin>>n>>m;
       ^
Main.cc:7:10: error: ‘m’ was not declared in this scope
  cin>>n>>m;
          ^
Main.cc:15:3: error: ‘b’ was not declared in this scope
   b[l]+=z;
   ^
Main.cc:19:3: error: ‘b’ was not declared in this scope
   b[i]+=b[i-1];
   ^