fork download
  1. #include<stdio.h>
  2. int g() ;
  3. int f();
  4. int main()
  5. {
  6. printf(ā€œ%dā€,f());
  7. }
  8. int g(){
  9. int a=7,b=8,c;
  10. {
  11. int a=3;
  12. b=6;
  13. c=b+a;
  14. }
  15. return (c+b+a);
  16. }
  17. int f()
  18. {
  19. return (g());
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:10: error: stray ‘\342’ in program
   printf(“%d”,f());
          ^
prog.cpp:6:11: error: stray ‘\200’ in program
   printf(“%d”,f());
           ^
prog.cpp:6:12: error: stray ‘\234’ in program
   printf(“%d”,f());
            ^
prog.cpp:6:15: error: stray ‘\342’ in program
   printf(“%d”,f());
               ^
prog.cpp:6:16: error: stray ‘\200’ in program
   printf(“%d”,f());
                ^
prog.cpp:6:17: error: stray ‘\235’ in program
   printf(“%d”,f());
                 ^
prog.cpp: In function ‘int main()’:
prog.cpp:6:13: error: expected primary-expression before ‘%’ token
   printf(“%d”,f());
             ^
prog.cpp:6:14: error: ‘d’ was not declared in this scope
   printf(“%d”,f());
              ^
stdout
Standard output is empty