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

Envío 1669

Problema 0x78 - Suma de 2 números

  • Autor: JulianMi12
  • Fecha: 2020-11-06 18:24:31 UTC (Hace más de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:7: error: class Cx78 is public, should be declared in a file named Cx78.java
public class Cx78 {
       ^
1 error

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

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

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

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

                    
Puntos totales: 0 / 100

Código

import java.util.Scanner;

/**
 *
 * @author Julian_Miranda
 */
public class Cx78 {
    
    static Scanner en = new Scanner(System.in);
            
    public static void main(String[] args) {
        int a = en.nextInt();
        int b = en.nextInt();
        System.out.println(a+b);
    }
}