fork download
  1. #include <stdio.h>
  2. void main()
  3. {
  4. static int var = 5;
  5. printf("%d ",var--);
  6. if(var)
  7. main();
  8. }
  9. int main(void) {
  10. // your code goes here
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
 void main()
      ^~~~
prog.c:9:5: error: conflicting types for ‘main’
 int main(void) {
     ^~~~
prog.c:2:6: note: previous definition of ‘main’ was here
 void main()
      ^~~~
stdout
Standard output is empty