fork download
  1. #include <iostream>
  2. int x = 0;
  3. int y = 0;
  4. int main () {
  5. if ((x++) && (y++)) {
  6. y += 2;
  7. }
  8. cout << x + y ;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, or enum expected
#include <iostream>
         ^
Main.java:3: error: class, interface, or enum expected
int y = 0;
^
Main.java:4: error: class, interface, or enum expected
int main () {
^
Main.java:7: error: class, interface, or enum expected
}
^
Main.java:9: error: class, interface, or enum expected
}
^
6 errors
stdout
Standard output is empty