fork download
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args){
  5. int valor;
  6. Scanner entrada;
  7.  
  8. entrada = new Scanner(System.in);
  9. valor = entrada.next();
  10. System.out.println( (valor&1==1 || valor<=2) ? "NO" : "YES");
  11.  
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
20
compilation info
Main.java:9: error: incompatible types: String cannot be converted to int
		valor = entrada.next();
		                    ^
Main.java:10: error: bad operand types for binary operator '&'
		System.out.println( (valor&1==1 || valor<=2) ? "NO" : "YES");
		                          ^
  first type:  int
  second type: boolean
2 errors
stdout
Standard output is empty