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

Envío 7274

Problema 0x78 - Suma de 2 números

  • Autor: manuel claros
  • Fecha: 2024-05-14 16:05:43 UTC (Hace 7 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:1: error: '{' expected
public class suma.java
                 ^
Main.java:6: error: <identifier> expected
suma = a+b;
    ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                     ^
Main.java:11: error: class, interface, or enum expected
}
^
5 errors

                    
#2
Error de compilación
                      Main.java:1: error: '{' expected
public class suma.java
                 ^
Main.java:6: error: <identifier> expected
suma = a+b;
    ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                     ^
Main.java:11: error: class, interface, or enum expected
}
^
5 errors

                    
#3
Error de compilación
                      Main.java:1: error: '{' expected
public class suma.java
                 ^
Main.java:6: error: <identifier> expected
suma = a+b;
    ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                     ^
Main.java:11: error: class, interface, or enum expected
}
^
5 errors

                    
#4
Error de compilación
                      Main.java:1: error: '{' expected
public class suma.java
                 ^
Main.java:6: error: <identifier> expected
suma = a+b;
    ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                     ^
Main.java:11: error: class, interface, or enum expected
}
^
5 errors

                    
#5
Error de compilación
                      Main.java:1: error: '{' expected
public class suma.java
                 ^
Main.java:6: error: <identifier> expected
suma = a+b;
    ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                ^
Main.java:8: error: <identifier> expected
System.out.print(suma);
                     ^
Main.java:11: error: class, interface, or enum expected
}
^
5 errors

                    
Puntos totales: 0 / 100

Código

public class suma.java

	main.java {
int a=3,b=5;
 
suma = a+b;

System.out.print(suma);

}
}