Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error |
||
#2 |
Error de compilación
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error |
||
#3 |
Error de compilación
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error |
||
#4 |
Error de compilación
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error |
||
#5 |
Error de compilación
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java public class Solution { ^ 1 error |
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n1 = sc.nextInt(); int n2 = sc.nextInt(); System.out.println(n1+n2); } }