Main.cc: In function 'int main()': Main.cc:13:2: error: expected ';' before 'for' for (int j=2;j<=10;j++) ^ Main.cc:13:15: error: 'j' was not declared in this scope for (int j=2;j<=10;j++) ^