fork download
  1. #include<stdio.h>
  2. int a,b,c=0;
  3. void prfun(void)
  4. main()
  5. {
  6. static int a=1;
  7. prfun();
  8. a+=1;
  9. prfun();
  10. ptintf(" \n %d %d ",a,b);
  11. }
  12. void prfun(void)
  13. {
  14. static int a=2;
  15. int b=1;
  16. a += ++b;
  17. printf(" \n %d %d "a,b);
  18. }
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4: error: expected initializer before ‘main’
prog.cpp: In function ‘void prfun()’:
prog.cpp:17: error: expected `)' before ‘a’
prog.cpp:17: warning: too few arguments for format
prog.cpp: At global scope:
prog.cpp:19: error: expected declaration before ‘}’ token
stdout
Standard output is empty