Main.cc: In function ‘int main()’:
Main.cc:5:10: warning: right operand of comma operator has no effect [-Wunused-value]
cin>>n,m;
^
Main.cc:7:15: error: expected ‘;’ before numeric constant
for(int j=1 1;j<=m;j++){
^
Main.cc:7:18: warning: for increment expression has no effect [-Wunused-value]
for(int j=1 1;j<=m;j++){
~^~~
Main.cc:7:21: error: expected ‘)’ before ‘;’ token
for(int j=1 1;j<=m;j++){
^
Main.cc:7:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int j=1 1;j<=m;j++){
^~~
Main.cc:7:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
for(int j=1 1;j<=m;j++){
^
Main.cc:7:22: error: ‘j’ was not declared in this scope
Main.cc:4:10: warning: unused variable ‘a’ [-Wunused-variable]
int n,m,a[150][150],sum=0;
^