Submission #479700

#TimeUsernameProblemLanguageResultExecution timeMemory
479700Toinfinity1Mobile (BOI12_mobile)Java
Compilation error
0 ms0 KiB
import java.io.*; import java.util.*; public class Main { static class InputReader { BufferedReader reader; StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } String next() { // reads in the next string while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { // reads in the next int return Integer.parseInt(next()); } public long nextLong() { // reads in the next long return Long.parseLong(next()); } public double nextDouble() { // reads in the next double return Double.parseDouble(next()); } } static InputReader r = new InputReader(System.in); static PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) { int n = r.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i ++) { } pw.close(); } }

Compilation message (stderr)

mobile.java:4: error: class Main is public, should be declared in a file named Main.java
public class Main
       ^
1 error