fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b;
  6. cin>>a,b;
  7. if(a>b);
  8. cout<<a;
  9. else ;
  10. cout<<b;
  11.  
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:2: error: ‘else’ without a previous ‘if’
  else ;
  ^~~~
stdout
Standard output is empty