Submission #446056

#TimeUsernameProblemLanguageResultExecution timeMemory
446056233Robot (JOI21_ho_t4)Java
Compilation error
0 ms0 KiB
import java.util.*; import java.io.*; import java.awt.Point; import static java.lang.Math.*; public class Solution { public static LinkedList<Integer>[] edges; public static int n, m; public static void main(String[] args) throws IOException{ BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(input.readLine()); n = Integer.parseInt(st.nextToken()); m = Integer.parseInt(st.nextToken()); edges = new LinkedList[n]; for(int i = 0;i<n;i++) { edges[i] = new LinkedList<Integer>(); } for(int i = 0;i<m;i++) { st = new StringTokenizer(input.readLine()); int a = Integer.parseInt(st.nextToken()); int b = Integer.parseInt(st.nextToken()); int c = Integer.parseInt(st.nextToken()); int p = Integer.parseInt(st.nextToken()); edges[a].add(b); pair pair = new pair(p, c); } System.out.println(3); } static class pair{ int c, p; public pair(int c, int p) { this.c = c; this.p = p; } } }

Compilation message (stderr)

Main.java:6: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error