Submission #333266

#TimeUsernameProblemLanguageResultExecution timeMemory
333266updown1Untitled (POI11_tem)C++17
Compilation error
0 ms0 KiB
import java.io.*; import java.util.*; public class tem { public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); //BufferedReader bf = new BufferedReader(new FileReader("tester.in")); PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out)); int N = Integer.parseInt(bf.readLine()); int[] min = new int[N]; int[] max = new int[N]; for(int i = 0; i < N; i++){ StringTokenizer stk = new StringTokenizer(bf.readLine()); min[i] = Integer.parseInt(stk.nextToken()); max[i] = Integer.parseInt(stk.nextToken()); } int num = min[0]; int count = 0; int answer = 0; System.out.println(answer); } }

Compilation message (stderr)

tem.cpp:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
tem.cpp:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
tem.cpp:4:1: error: expected unqualified-id before 'public'
    4 | public class tem {
      | ^~~~~~