fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int com=1;
  6. if(com!=1)
  7. printf("X");
  8. if(com>0)
  9. if(com<10)
  10. printf("Y")
  11. else
  12. printf("Z");
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:12: error: 'printf' was not declared in this scope
  printf("X");
            ^
prog.cpp:10:12: error: 'printf' was not declared in this scope
  printf("Y")
            ^
stdout
Standard output is empty