/in/foo.c: In function 'generate_pascal_triangle':
/in/foo.c:7:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 1; i < n; i++) ;
^~~
/in/foo.c:8:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
triangle[i][0] = 1;
^~~~~~~~
/in/foo.c:8:18: error: 'i' undeclared (first use in this function)
triangle[i][0] = 1;
^
/in/foo.c:8:18: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:4:9: warning: variable 'triangle' set but not used [-Wunused-but-set-variable]
int triangle[n][n];
^~~~~~~~
/in/foo.c: At top level:
/in/foo.c:16:5: error: expected identifier or '(' before 'for'
for (int i = 0; i < n; i++) {
^~~
/in/foo.c:16:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
for (int i = 0; i < n; i++) {
^
/in/foo.c:16:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for (int i = 0; i < n; i++) {
^~
/in/foo.c:22:1: error: expected identifier or '(' before '}' token
}
^