#include <iostream> using namespace std; int main() { int com=1; if(com!=1) printf("X"); if(com>0) if(com<10) printf("Y") else printf("Z"); return 0; }
Standard input is empty
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") ^
Standard output is empty