fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int x=1,y=2,z=1;
  7. if(x,y,z);
  8. cout<<x;
  9. else
  10. cout<<"fuck";
  11. }
Compilation error #stdin compilation error #stdout 0s 4548KB
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