0_0_24524072_8907.c: In function 'main':
0_0_24524072_8907.c:7:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int k = 1; k <= t; k++) {
^
0_0_24524072_8907.c:7:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_24524072_8907.c:11:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i <= n; i++) {
^
0_0_24524072_8907.c:17:14: error: redefinition of 'i'
for (int i = 1; i <= n; i++) {
^
0_0_24524072_8907.c:11:14: note: previous definition of 'i' was here
for (int i = 1; i <= n; i++) {
^
0_0_24524072_8907.c:17:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i <= n; i++) {
^
0_0_24524072_8907.c:30:18: error: redefinition of 'i'
for (int i = start; i <= end; i++) {
^
0_0_24524072_8907.c:17:14: note: previous definition of 'i' was here
for (int i = 1; i <= n; i++) {
^
0_0_24524072_8907.c:30:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = start; i <= end; i++) {
^
0_0_24524072_8907.c:33:13: error: expected ';' before 'else'
else printf("\n");
^
0_0_24524072_8907.c:37:5: error: expected ';' before '}' token
}
^
|