Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:7: error: cannot find symbol int a = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner Main.java:8: error: cannot find symbol int b = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner 2 errors |
||
#2 |
Error de compilación
Main.java:7: error: cannot find symbol int a = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner Main.java:8: error: cannot find symbol int b = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner 2 errors |
||
#3 |
Error de compilación
Main.java:7: error: cannot find symbol int a = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner Main.java:8: error: cannot find symbol int b = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner 2 errors |
||
#4 |
Error de compilación
Main.java:7: error: cannot find symbol int a = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner Main.java:8: error: cannot find symbol int b = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner 2 errors |
||
#5 |
Error de compilación
Main.java:7: error: cannot find symbol int a = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner Main.java:8: error: cannot find symbol int b = SC.nextInt; ^ symbol: variable nextInt location: variable SC of type Scanner 2 errors |
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner SC = new Scanner(System.in); int a = SC.nextInt; int b = SC.nextInt; System.out.print(a+b); }}