Run id: 124522

Main.cc: In function 'int main()':
Main.cc:6:1: error: expected initializer before 'cin'
 cin>>n>>m;
 ^
Main.cc:10:16: error: 'm' was not declared in this scope
 for(int i=1;i<=m;i++){
                ^
Main.cc:15:5: error: expected '}' before 'else'
     else a[j]=0;
     ^
Main.cc: At global scope:
Main.cc:25:1: error: expected declaration before '}' token
 }
 ^