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

Envío 7279

Problema 0x78 - Suma de 2 números

  • Autor: manuel claros
  • Fecha: 2024-05-14 16:13:35 UTC (Hace 7 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      Main.java:1: error: <identifier> expected
public class suma{java.java
                           ^
Main.java:3: error: <identifier> expected
	public static void main(java)
	                            ^
Main.java:3: error: ';' expected
	public static void main(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);
                     ^
6 errors

                    
#2
Error de compilación
                      Main.java:1: error: <identifier> expected
public class suma{java.java
                           ^
Main.java:3: error: <identifier> expected
	public static void main(java)
	                            ^
Main.java:3: error: ';' expected
	public static void main(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);
                     ^
6 errors

                    
#3
Error de compilación
                      Main.java:1: error: <identifier> expected
public class suma{java.java
                           ^
Main.java:3: error: <identifier> expected
	public static void main(java)
	                            ^
Main.java:3: error: ';' expected
	public static void main(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);
                     ^
6 errors

                    
#4
Error de compilación
                      Main.java:1: error: <identifier> expected
public class suma{java.java
                           ^
Main.java:3: error: <identifier> expected
	public static void main(java)
	                            ^
Main.java:3: error: ';' expected
	public static void main(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);
                     ^
6 errors

                    
#5
Error de compilación
                      Main.java:1: error: <identifier> expected
public class suma{java.java
                           ^
Main.java:3: error: <identifier> expected
	public static void main(java)
	                            ^
Main.java:3: error: ';' expected
	public static void main(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);
                     ^
6 errors

                    
Puntos totales: 0 / 100

Código

public class suma{java.java

	public static void main(java)
int a=3,b=5;
 
suma = a+b;

System.out.print(suma);

    
}