Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import java.io.BufferedOutputStream; ^ main.c:1:12: error: expected ';' after top level declarator import java.io.BufferedOutputStream; ^ ; main.c:2:1: error: unknown type name 'import' import java.io.BufferedReader; ^ main.c:2:12: error: expected ';' after top level declarator import java.io.BufferedReader; ^ ; main.c:3:1: error: unknown type name 'import' import java.io.IOException; ^ main.c:3:12: error: expected ';' after top level declarator import java.io.IOException; ^ ; main.c:4:1: error: unknown type name 'import' import java.io.InputStreamReader; ^ main.c:4:12: error: expected ';' after top level declarator import java.io.InputStreamReader; ^ ; main.c:5:1: error: unknown type name 'import' import java.io.PrintWriter; ^ main.c:5:12: error: expected ';' after top level declarator import java.io.PrintWriter; ^ ; main.c:6:1: error: unknown type name 'import' import java.util.StringTokenizer; ^ main.c:6:12: error: expected ';' after top level declarator import java.util.StringTokenizer; ^ ; main.c:8:1: error: unknown type name 'public' public class Suma2Num { ^ main.c:8:13: error: expected ';' after top level declarator public class Suma2Num { ^ ; 14 errors generated. |
||
#2 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import java.io.BufferedOutputStream; ^ main.c:1:12: error: expected ';' after top level declarator import java.io.BufferedOutputStream; ^ ; main.c:2:1: error: unknown type name 'import' import java.io.BufferedReader; ^ main.c:2:12: error: expected ';' after top level declarator import java.io.BufferedReader; ^ ; main.c:3:1: error: unknown type name 'import' import java.io.IOException; ^ main.c:3:12: error: expected ';' after top level declarator import java.io.IOException; ^ ; main.c:4:1: error: unknown type name 'import' import java.io.InputStreamReader; ^ main.c:4:12: error: expected ';' after top level declarator import java.io.InputStreamReader; ^ ; main.c:5:1: error: unknown type name 'import' import java.io.PrintWriter; ^ main.c:5:12: error: expected ';' after top level declarator import java.io.PrintWriter; ^ ; main.c:6:1: error: unknown type name 'import' import java.util.StringTokenizer; ^ main.c:6:12: error: expected ';' after top level declarator import java.util.StringTokenizer; ^ ; main.c:8:1: error: unknown type name 'public' public class Suma2Num { ^ main.c:8:13: error: expected ';' after top level declarator public class Suma2Num { ^ ; 14 errors generated. |
||
#3 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import java.io.BufferedOutputStream; ^ main.c:1:12: error: expected ';' after top level declarator import java.io.BufferedOutputStream; ^ ; main.c:2:1: error: unknown type name 'import' import java.io.BufferedReader; ^ main.c:2:12: error: expected ';' after top level declarator import java.io.BufferedReader; ^ ; main.c:3:1: error: unknown type name 'import' import java.io.IOException; ^ main.c:3:12: error: expected ';' after top level declarator import java.io.IOException; ^ ; main.c:4:1: error: unknown type name 'import' import java.io.InputStreamReader; ^ main.c:4:12: error: expected ';' after top level declarator import java.io.InputStreamReader; ^ ; main.c:5:1: error: unknown type name 'import' import java.io.PrintWriter; ^ main.c:5:12: error: expected ';' after top level declarator import java.io.PrintWriter; ^ ; main.c:6:1: error: unknown type name 'import' import java.util.StringTokenizer; ^ main.c:6:12: error: expected ';' after top level declarator import java.util.StringTokenizer; ^ ; main.c:8:1: error: unknown type name 'public' public class Suma2Num { ^ main.c:8:13: error: expected ';' after top level declarator public class Suma2Num { ^ ; 14 errors generated. |
||
#4 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import java.io.BufferedOutputStream; ^ main.c:1:12: error: expected ';' after top level declarator import java.io.BufferedOutputStream; ^ ; main.c:2:1: error: unknown type name 'import' import java.io.BufferedReader; ^ main.c:2:12: error: expected ';' after top level declarator import java.io.BufferedReader; ^ ; main.c:3:1: error: unknown type name 'import' import java.io.IOException; ^ main.c:3:12: error: expected ';' after top level declarator import java.io.IOException; ^ ; main.c:4:1: error: unknown type name 'import' import java.io.InputStreamReader; ^ main.c:4:12: error: expected ';' after top level declarator import java.io.InputStreamReader; ^ ; main.c:5:1: error: unknown type name 'import' import java.io.PrintWriter; ^ main.c:5:12: error: expected ';' after top level declarator import java.io.PrintWriter; ^ ; main.c:6:1: error: unknown type name 'import' import java.util.StringTokenizer; ^ main.c:6:12: error: expected ';' after top level declarator import java.util.StringTokenizer; ^ ; main.c:8:1: error: unknown type name 'public' public class Suma2Num { ^ main.c:8:13: error: expected ';' after top level declarator public class Suma2Num { ^ ; 14 errors generated. |
||
#5 |
Error de compilación
main.c:1:1: error: unknown type name 'import' import java.io.BufferedOutputStream; ^ main.c:1:12: error: expected ';' after top level declarator import java.io.BufferedOutputStream; ^ ; main.c:2:1: error: unknown type name 'import' import java.io.BufferedReader; ^ main.c:2:12: error: expected ';' after top level declarator import java.io.BufferedReader; ^ ; main.c:3:1: error: unknown type name 'import' import java.io.IOException; ^ main.c:3:12: error: expected ';' after top level declarator import java.io.IOException; ^ ; main.c:4:1: error: unknown type name 'import' import java.io.InputStreamReader; ^ main.c:4:12: error: expected ';' after top level declarator import java.io.InputStreamReader; ^ ; main.c:5:1: error: unknown type name 'import' import java.io.PrintWriter; ^ main.c:5:12: error: expected ';' after top level declarator import java.io.PrintWriter; ^ ; main.c:6:1: error: unknown type name 'import' import java.util.StringTokenizer; ^ main.c:6:12: error: expected ';' after top level declarator import java.util.StringTokenizer; ^ ; main.c:8:1: error: unknown type name 'public' public class Suma2Num { ^ main.c:8:13: error: expected ';' after top level declarator public class Suma2Num { ^ ; 14 errors generated. |
import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Suma2Num { public static void main(String[] args) { MyScanner scanner = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); int a = scanner.nextInt(); int b = scanner.nextInt(); int suma = a + b; out.print(suma); } public static PrintWriter out; public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }