Main.cc: In function ‘int main()’: Main.cc:13:17: error: ‘n’ was not declared in this scope for(int i=2;i<=n;i++){ ^