foo.c:3:1: warning: missing braces around initializer [-Wmissing-braces]
int a[9][9]={0},ka[9][9]={0},kb[9][9]={0},kc[3][3][9]={0},mark=1,n=0;
^
foo.c:3:1: warning: (near initialization for 'a[0]') [-Wmissing-braces]
foo.c:3:1: warning: missing braces around initializer [-Wmissing-braces]
foo.c:3:1: warning: (near initialization for 'ka[0]') [-Wmissing-braces]
foo.c:3:1: warning: missing braces around initializer [-Wmissing-braces]
foo.c:3:1: warning: (near initialization for 'kb[0]') [-Wmissing-braces]
foo.c:3:1: warning: missing braces around initializer [-Wmissing-braces]
foo.c:3:1: warning: (near initialization for 'kc[0]') [-Wmissing-braces]
foo.c: In function 'main':
foo.c:12:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int s=1;s<=n;s++)
^
foo.c:12:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
foo.c:14:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=0;i<9;i++)
^
foo.c:15:11: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=0;j<9;j++)
^
foo.c:21:18: error: redefinition of 'i'
for (int i=0;i<3;i++)
^
foo.c:14:18: note: previous definition of 'i' was here
for (int i=0;i<9;i++)
^
foo.c:21:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=0;i<3;i++)
^
foo.c:22:20: error: redefinition of 'j'
for (int j=0;j<3;j++)
^
foo.c:15:20: note: previous definition of 'j' was here
for (int j=0;j<9;j++)
^
foo.c:22:11: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=0;j<3;j++)
^
foo.c:23:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int k=0;k<9;k++)
^
foo.c:25:18: error: redefinition of 'i'
for (int i=0;i<9;i++)
^
foo.c:21:18: note: previous definition of 'i' was here
for (int i=0;i<3;i++)
^
foo.c:25:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=0;i<9;i++)
^
foo.c:28:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=0;j<9;j++)
^
foo.c: In function 'work':
foo.c:58:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=0;i<9;i++)
^
foo.c:60:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j=0;j<9;j++)
^
foo.c:67:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i=0;i<9;i++)
^