답안 #479700

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
479700 2021-10-12T21:45:10 Z Toinfinity1 Mobile (BOI12_mobile) Java 11
컴파일 오류
0 ms 0 KB
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

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