Main.cc: In function 'int main()': Main.cc:7:19: error: expected ';' before ')' token for(int i=1; i<=m) { ^ Main.cc:10:11: warning: statement has no effect [-Wunused-value] arr[j]==1; ^