prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^~~~
prog.c: In function ‘main’:
prog.c:13:27: error: ‘num’ undeclared (first use in this function)
printf("%c", num[i]);
^~~
prog.c:13:27: note: each undeclared identifier is reported only once for each function it appears in
prog.c:20:21: error: ‘k’ undeclared (first use in this function)
for(j=0;j<9;k++)
^
prog.c:38:1: error: expected declaration or statement at end of input
}
^