运行 ID: 12204

Main.cc: In function ‘int main()’:
Main.cc:16:17: error: expected ‘)’ before ‘;’ token
   16 |     while(cin>>n;)
      |          ~      ^
      |                 )
Main.cc:16:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
   16 |     while(cin>>n;)
      |     ^~~~~
Main.cc:16:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
   16 |     while(cin>>n;)
      |                  ^
Main.cc:16:18: error: expected primary-expression before ‘)’ token
Main.cc:17:14: error: ‘i’ was not declared in this scope
   17 |  for(int i=2;i<=n;i++){
      |              ^