#include <stdio.h> void main() { italy(); } italy() { brazil(); } brazil() { argentina(); } argentina() { } return 0; }
Standard input is empty
prog.c:2:6: warning: return type of 'main' is not 'int' [-Wmain]
void main()
^
prog.c: In function 'main':
prog.c:5:1: warning: implicit declaration of function 'italy' [-Wimplicit-function-declaration]
italy();
^
prog.c: At top level:
prog.c:8:1: warning: return type defaults to 'int' [-Wimplicit-int]
italy()
^
prog.c: In function 'italy':
prog.c:11:2: warning: implicit declaration of function 'brazil' [-Wimplicit-function-declaration]
brazil();
^
prog.c: At top level:
prog.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int]
brazil()
^
prog.c: In function 'brazil':
prog.c:17:2: warning: implicit declaration of function 'argentina' [-Wimplicit-function-declaration]
argentina();
^
prog.c: At top level:
prog.c:19:1: warning: return type defaults to 'int' [-Wimplicit-int]
argentina()
^
prog.c:23:1: warning: data definition has no type or storage class
getch();
^
prog.c:23:1: warning: type defaults to 'int' in declaration of 'getch' [-Wimplicit-int]
prog.c:24:1: error: expected identifier or '(' before 'return'
return 0;
^
prog.c:25:1: error: expected identifier or '(' before '}' token
}
^
prog.c: In function 'italy':
prog.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function 'brazil':
prog.c:18:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function 'argentina':
prog.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Standard output is empty