█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 6625

Problema 0x78 - Suma de 2 números

  • Autor: maoman123
  • Fecha: 2022-09-15 23:57:22 UTC (Hace 16 días)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class codeo
Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class codeo
2 errors

                    
#2
Error de compilación
                      Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class codeo
Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class codeo
2 errors

                    
#3
Error de compilación
                      Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class codeo
Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class codeo
2 errors

                    
#4
Error de compilación
                      Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class codeo
Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class codeo
2 errors

                    
#5
Error de compilación
                      Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class codeo
Main.java:4: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class codeo
2 errors

                    
Puntos totales: 0 / 100

Código

class codeo {

    public static void main(String[] args) {
        Scanner entrada = new Scanner(System.in);
        int a, b;

        a = entrada.nextInt();
        b = entrada.nextInt();
        System.out.println(a + b);
    }

}