prog.c: In function ‘main’:
prog.c:10:2: error: too few arguments to function ‘joe’
joe(mama);
^~~
prog.c:2:5: note: declared here
int joe (int mama, int cookies);
^~~
prog.c: At top level:
prog.c:14:5: error: conflicting types for ‘joe’
int joe (int mama) {
^~~
prog.c:2:5: note: previous declaration of ‘joe’ was here
int joe (int mama, int cookies);
^~~
prog.c: In function ‘joe’:
prog.c:16:3: error: ‘cookies’ undeclared (first use in this function)
cookies = 12;
^~~~~~~
prog.c:16:3: note: each undeclared identifier is reported only once for each function it appears in
prog.c: In function ‘main’:
prog.c:9:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mama);
^~~~~~~~~~~~~~~~~~
prog.c: In function ‘joe’:
prog.c:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^