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

Envío 2135

Problema 0x78 - Suma de 2 números

  • Autor: stivenxito
  • Fecha: 2020-11-25 01:53:36 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:10: error: reached end of file while parsing
}
 ^
1 error

                    
#2
Error de compilación
                      Main.java:10: error: reached end of file while parsing
}
 ^
1 error

                    
#3
Error de compilación
                      Main.java:10: error: reached end of file while parsing
}
 ^
1 error

                    
#4
Error de compilación
                      Main.java:10: error: reached end of file while parsing
}
 ^
1 error

                    
#5
Error de compilación
                      Main.java:10: error: reached end of file while parsing
}
 ^
1 error

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String[] linea = (scan.nextLine()).split(" ");
    int a = Integer.parseInt(linea[0]);
    int b = Integer.parseInt(linea[1]);
    System.out.print(a+b);
}