Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:4: error: class, interface, or enum expected public static void main(String[] args) { ^ Main.java:7: error: class, interface, or enum expected suma = a+b; ^ Main.java:9: error: class, interface, or enum expected System.out.print(suma); ^ Main.java:11: error: class, interface, or enum expected } ^ 4 errors |
||
#2 |
Error de compilación
Main.java:4: error: class, interface, or enum expected public static void main(String[] args) { ^ Main.java:7: error: class, interface, or enum expected suma = a+b; ^ Main.java:9: error: class, interface, or enum expected System.out.print(suma); ^ Main.java:11: error: class, interface, or enum expected } ^ 4 errors |
||
#3 |
Error de compilación
Main.java:4: error: class, interface, or enum expected public static void main(String[] args) { ^ Main.java:7: error: class, interface, or enum expected suma = a+b; ^ Main.java:9: error: class, interface, or enum expected System.out.print(suma); ^ Main.java:11: error: class, interface, or enum expected } ^ 4 errors |
||
#4 |
Error de compilación
Main.java:4: error: class, interface, or enum expected public static void main(String[] args) { ^ Main.java:7: error: class, interface, or enum expected suma = a+b; ^ Main.java:9: error: class, interface, or enum expected System.out.print(suma); ^ Main.java:11: error: class, interface, or enum expected } ^ 4 errors |
||
#5 |
Error de compilación
Main.java:4: error: class, interface, or enum expected public static void main(String[] args) { ^ Main.java:7: error: class, interface, or enum expected suma = a+b; ^ Main.java:9: error: class, interface, or enum expected System.out.print(suma); ^ Main.java:11: error: class, interface, or enum expected } ^ 4 errors |
public static void main(String[] args) { int a=3,b=5; suma = a+b; System.out.print(suma); }