Main.cc: In function 'int main()': Main.cc:14:2: error: expected ';' before 'for' for(int i=0;i<4;i++) ^ Main.cc:14:14: error: 'i' was not declared in this scope for(int i=0;i<4;i++) ^