fork download
  1. #include <iostream.h>
  2. void main()
  3. {
  4. int n,m;
  5. cout<<"enter n1";
  6. cin>>n;
  7. cout<<"enter n2";
  8. cin>>m;
  9. if(n>m)
  10. cout<<"n1 is larger...";
  11. else
  12. cout<<"n2 is larger...";
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:22: error: iostream.h: No such file or directory
prog.cpp:2: error: ‘::main’ must return ‘int’
prog.cpp: In function ‘int main()’:
prog.cpp:5: error: ‘cout’ was not declared in this scope
prog.cpp:6: error: ‘cin’ was not declared in this scope
stdout
Standard output is empty