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.nextInteger();
  10. System.out.println( (valor&1 || valor<=2) ? "NO" : "YES");
  11.  
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:9: error: cannot find symbol
		valor = entrada.nextInteger();
		               ^
  symbol:   method nextInteger()
  location: variable entrada of type Scanner
Main.java:10: error: bad operand types for binary operator '||'
		System.out.println( (valor&1 || valor<=2) ? "NO" : "YES");
		                             ^
  first type:  int
  second type: boolean
2 errors
stdout
Standard output is empty