/in/foo.c: In function 'main':
/in/foo.c:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=0; i < N; i++)
^~~
/in/foo.c:12:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
if (c == '\n')
^~
/in/foo.c:13:8: error: 'i' undeclared (first use in this function)
str[i] = '\0';
^
/in/foo.c:13:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (c == '\n')
^~
/in/foo.c:14:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
break;
^~~~~
/in/foo.c:14:4: error: break statement not within loop or switch