prog.c: In function ‘main’:
prog.c:5:20: warning: implicit declaration of function ‘check’ [-Wimplicit-function-declaration]
int output=check(4,2);
^~~~~
prog.c:6:21: error: ‘result’ undeclared (first use in this function)
printf("%d",result);
^~~~~~
prog.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:13: warning: unused variable ‘output’ [-Wunused-variable]
int output=check(4,2);
^~~~~~
prog.c: In function ‘check’:
prog.c:13:9: error: ‘else’ without a previous ‘if’
else
^~~~