prog.c: In function ‘start’:
prog.c:24:8: error: expected expression before ‘%’ token
scanf(%d %d,&i &j);
^
prog.c:25:4: error: ‘i’ undeclared (first use in this function)
g[i+1][j+1]= X;
^
prog.c:25:4: note: each undeclared identifier is reported only once for each function it appears in
prog.c:25:9: error: ‘j’ undeclared (first use in this function)
g[i+1][j+1]= X;
^
prog.c:25:15: error: ‘X’ undeclared (first use in this function)
g[i+1][j+1]= X;
^
prog.c:27:6: warning: ‘main’ is normally a non-static function [-Wmain]
int main()
^~~~
prog.c:34:2: error: expected declaration or statement at end of input
}
^
prog.c: In function ‘display’:
prog.c:19:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘start’:
prog.c:34:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
At top level:
prog.c:27:6: warning: ‘main’ defined but not used [-Wunused-function]
int main()
^~~~