Main.cc: In function ‘int main()’: Main.cc:12:15: error: redeclaration of ‘int j’ for(int j=0,j=5,j++){ ^ Main.cc:12:11: note: ‘int j’ previously declared here for(int j=0,j=5,j++){ ^ Main.cc:12:20: error: expected ‘;’ before ‘++’ token for(int j=0,j=5,j++){ ^~ Main.cc:12:22: error: expected primary-expression before ‘)’ token for(int j=0,j=5,j++){ ^ Main.cc:12:22: error: expected ‘;’ before ‘)’ token