0_0_20200285_27492.c: In function 'main':
0_0_20200285_27492.c:18:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < i; j++) {
^
0_0_20200285_27492.c:18:4: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_20200285_27492.c:21:19: error: redefinition of 'j'
case 1:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:18:13: note: previous definition of 'j' was here
for (int j = 0; j < i; j++) {
^
0_0_20200285_27492.c:21:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 1:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:22:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = j - 1; m > 0; m--) {
^
0_0_20200285_27492.c:27:19: error: redefinition of 'j'
case 2:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:21:19: note: previous definition of 'j' was here
case 1:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:27:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 2:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:28:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = i / 2; m > 0; m--) {
^
0_0_20200285_27492.c:33:19: error: redefinition of 'j'
case 3:for (int j = 1; j <= i; j++) {
^
0_0_20200285_27492.c:27:19: note: previous definition of 'j' was here
case 2:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:33:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 3:for (int j = 1; j <= i; j++) {
^
0_0_20200285_27492.c:34:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = 1; m < j; m++) {
^
0_0_20200285_27492.c:40:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
{for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:44:19: error: redefinition of 'j'
case 5:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:33:19: note: previous definition of 'j' was here
case 3:for (int j = 1; j <= i; j++) {
^
0_0_20200285_27492.c:44:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 5:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:45:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = j - 1; m > 0; m--) {
^
0_0_20200285_27492.c:50:19: error: redefinition of 'j'
case 6:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:44:19: note: previous definition of 'j' was here
case 5:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:50:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 6:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:51:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = i / 2; m > 0; m--) {
^
0_0_20200285_27492.c:56:19: error: redefinition of 'j'
case 7:for (int j = 1; j <= i; j++) {
^
0_0_20200285_27492.c:50:19: note: previous definition of 'j' was here
case 6:for (int j = i; j > 0; j--) {
^
0_0_20200285_27492.c:56:10: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
case 7:for (int j = 1; j <= i; j++) {
^
0_0_20200285_27492.c:57:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int m = 1; m < j; m++) {
^
|