Mã chấm: 267922
Main.cc: In function ‘int main()’: Main.cc:11:14: error: expected unqualified-id before ‘=’ token for (int = 0; i <= n; i++){ ^ Main.cc:11:14: error: expected ‘;’ before ‘=’ token Main.cc:11:14: error: expected primary-expression before ‘=’ token Main.cc:11:19: error: ‘i’ was not declared in this scope for (int = 0; i <= n; i++){ ^ Main.cc:11:25: error: expected ‘)’ before ‘;’ token for (int = 0; i <= n; i++){ ^ Main.cc:11:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (int = 0; i <= n; i++){ ^~~ Main.cc:11:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ for (int = 0; i <= n; i++){ ^ Main.cc:11:27: error: ‘i’ was not declared in this scope