fork download
#include <iostream>
int x = 0;
int y = 0;
int main () {
if ((x++) && (y++)) {
y += 2;
}
cout << x + y ;
}
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