fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x=1,y=2,z=3;
  6. if(z<=y&&y==0){
  7. printf("X");
  8. }else{
  9. if(x!=y||x!=z)
  10. printf("Y");
  11. printf("Z");
  12. }
  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:13: error: 'printf' was not declared in this scope
   printf("X");
             ^
prog.cpp:10:13: error: 'printf' was not declared in this scope
   printf("Y");
             ^
prog.cpp:11:13: error: 'printf' was not declared in this scope
   printf("Z");
             ^
stdout
Standard output is empty