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

Envío 4633

Problema 0x78 - Suma de 2 números

  • Autor: diezgo1008
  • Fecha: 2021-08-04 19:37:51 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:3: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner entrada = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors

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

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

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

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

                    
Puntos totales: 0 / 100

Código

public class Main {
    public static void main(String[] args) {
        Scanner entrada = new Scanner(System.in);
        int a = entrada.nextInt();
        int b = entrada.nextInt();
        int c = a + b;
        System.out.println(c);
    }
    
}