/in/foo.cc: In function 'int main()':
/in/foo.cc:8:10: error: expected unqualified-id before '=' token
for(int = 1; i <= n; i++)
^
/in/foo.cc:8:10: error: expected ';' before '=' token
/in/foo.cc:8:10: error: expected primary-expression before '=' token
/in/foo.cc:8:15: error: 'i' was not declared in this scope
for(int = 1; i <= n; i++)
^
/in/foo.cc:8:21: error: expected ')' before ';' token
for(int = 1; i <= n; i++)
^
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int = 1; i <= n; i++)
^~~
/in/foo.cc:8:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int = 1; i <= n; i++)
^
/in/foo.cc:8:23: error: 'i' was not declared in this scope