运行 ID: 43023

Main.cc: In function ‘int main()’:
Main.cc:7:11: error: expected ‘;’ before ‘>’ token
  for(int i>1;i<=n;i++){
           ^
Main.cc:7:11: error: expected primary-expression before ‘>’ token
Main.cc:7:15: warning: for increment expression has no effect [-Wunused-value]
  for(int i>1;i<=n;i++){
              ~^~~
Main.cc:7:18: error: expected ‘)’ before ‘;’ token
  for(int i>1;i<=n;i++){
                  ^
Main.cc:7:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
  for(int i>1;i<=n;i++){
  ^~~
Main.cc:7:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  for(int i>1;i<=n;i++){
                   ^
Main.cc:7:19: error: ‘i’ was not declared in this scope