/in/foo.cc: In function 'int main()':
/in/foo.cc:6:11: error: expected ';' before '<' token
for(int i<0;i<n;i++){
^
/in/foo.cc:6:11: error: expected primary-expression before '<' token
/in/foo.cc:6:15: warning: for increment expression has no effect [-Wunused-value]
for(int i<0;i<n;i++){
~^~
/in/foo.cc:6:17: error: expected ')' before ';' token
for(int i<0;i<n;i++){
^
/in/foo.cc:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i<0;i<n;i++){
^~~
/in/foo.cc:6:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i<0;i<n;i++){
^
/in/foo.cc:6:18: error: 'i' was not declared in this scope
/in/foo.cc:12:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(i=k-1){
^
/in/foo.cc:18:1: error: expected '}' at end of input
}
^
/in/foo.cc:18:1: error: expected '}' at end of input