Main.cc: In function 'int main()':
Main.cc:19:13: error: expected ';' before 'for'
for(int j=i+2;j<=n-1;j++){
^
Main.cc:19:27: error: 'j' was not declared in this scope
for(int j=i+2;j<=n-1;j++){
^