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

Envío 6042

Problema 0x78 - Suma de 2 números

  • Autor: Justin
  • Fecha: 2022-05-18 04:06:47 UTC (Hace 9 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:1: error: class Suma is public, should be declared in a file named Suma.java
public class Suma{
       ^
1 error

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

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

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

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

                    
Puntos totales: 0 / 100

Código

public class Suma{

  public static void main(String args[]){

    int valor_uno = 3;
    int valor_dos = 4;

    System.out.println(valor_uno + valor_dos);
  }
}