Main.cc: In function 'int main()':
Main.cc:15:5: error: expected ';' before 'for'
for(int i=2;i<=N;i++){
^
Main.cc:15:17: error: 'i' was not declared in this scope
for(int i=2;i<=N;i++){
^
Main.cc:20:1: error: expected '}' at end of input
}
^