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

Envío 6822

Problema 0x78 - Suma de 2 números

  • Autor: taopaipai
  • Fecha: 2022-12-12 16:32:55 UTC (Hace alrededor de 2 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:5: error: class SumTwoNums is public, should be declared in a file named SumTwoNums.java
public class SumTwoNums {
       ^
1 error

                    
#2
Error de compilación
                      Main.java:5: error: class SumTwoNums is public, should be declared in a file named SumTwoNums.java
public class SumTwoNums {
       ^
1 error

                    
#3
Error de compilación
                      Main.java:5: error: class SumTwoNums is public, should be declared in a file named SumTwoNums.java
public class SumTwoNums {
       ^
1 error

                    
#4
Error de compilación
                      Main.java:5: error: class SumTwoNums is public, should be declared in a file named SumTwoNums.java
public class SumTwoNums {
       ^
1 error

                    
#5
Error de compilación
                      Main.java:5: error: class SumTwoNums is public, should be declared in a file named SumTwoNums.java
public class SumTwoNums {
       ^
1 error

                    
Puntos totales: 0 / 100

Código

package Codeo;

import java.util.Scanner;

public class SumTwoNums {
    public static void main(String[] ars) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        System.out.println(a + b);
    }
}