fork download
  1. int x=1;
  2. int y=3;
  3. void main(){
  4. If (x<2)
  5. x++;
  6. else {x--; y=y+1;
  7. if (y=3) y=y%x;}
  8. x=x+y;
  9. y=y%x;
  10. cout<<x<<y;
  11. }
  12.  
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
int x=1;
^
Main.java:1: error: class, interface, or enum expected
int x=1;
    ^
Main.java:2: error: class, interface, or enum expected
int y=3;
^
Main.java:3: error: class, interface, or enum expected
void main(){
^
Main.java:6: error: class, interface, or enum expected
else {x--; y=y+1;
^
Main.java:6: error: class, interface, or enum expected
else {x--; y=y+1;
           ^
Main.java:7: error: class, interface, or enum expected
if (y=3) y=y%x;}
^
Main.java:7: error: class, interface, or enum expected
if (y=3) y=y%x;}
               ^
Main.java:9: error: class, interface, or enum expected
y=y%x;
^
Main.java:10: error: class, interface, or enum expected
cout<<x<<y;
^
Main.java:11: error: class, interface, or enum expected
}
^
11 errors
stdout
Standard output is empty