0_0_38266618_29215.cpp:71:5: error: stray '@' in program
@Override
^
0_0_38266618_29215.cpp:1:1: error: 'import' does not name a type
import java.io.BufferedReader;
^
0_0_38266618_29215.cpp:2:1: error: 'import' does not name a type
import java.io.IOException;
^
0_0_38266618_29215.cpp:3:1: error: 'import' does not name a type
import java.io.InputStreamReader;
^
0_0_38266618_29215.cpp:4:1: error: 'import' does not name a type
import java.util.Arrays;
^
0_0_38266618_29215.cpp:7:12: error: 'BufferedReader' does not name a type
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
0_0_38266618_29215.cpp:8:20: error: ISO C++ forbids in-class initialization of non-const static member 'Main::N'
static int N = 200010, M = N;
^
0_0_38266618_29215.cpp:8:32: error: ISO C++ forbids in-class initialization of non-const static member 'Main::M'
static int N = 200010, M = N;
^
0_0_38266618_29215.cpp:8:32: error: the value of 'Main::N' is not usable in a constant expression
0_0_38266618_29215.cpp:8:16: note: 'int Main::N' is not const
static int N = 200010, M = N;
^
0_0_38266618_29215.cpp:11:12: error: 'Pair' does not name a type
static Pair pair[];
^
0_0_38266618_29215.cpp:13:12: error: expected ':' before 'static'
public static void init() {
^
0_0_38266618_29215.cpp:19:12: error: expected ':' before 'static'
public static void main(String[] args) throws IOException {
^
0_0_38266618_29215.cpp:19:29: error: 'String' has not been declared
public static void main(String[] args) throws IOException {
^
0_0_38266618_29215.cpp:19:38: error: expected ',' or '...' before 'args'
public static void main(String[] args) throws IOException {
^
0_0_38266618_29215.cpp:19:42: error: expected ';' at end of member declaration
public static void main(String[] args) throws IOException {
^
0_0_38266618_29215.cpp:19:44: error: 'throws' does not name a type
public static void main(String[] args) throws IOException {
^
0_0_38266618_29215.cpp:55:12: error: expected ':' before 'static'
public static int find(int x) {
^
0_0_38266618_29215.cpp:59:1: error: expected ';' after class definition
}
^
0_0_38266618_29215.cpp: In static member function 'static void Main::init()':
0_0_38266618_29215.cpp:10:16: error: 'Main::p' has incomplete type
static int p[];
^
0_0_38266618_29215.cpp:14:11: error: invalid use of array with unspecified bounds
p = new int[N];
^
0_0_38266618_29215.cpp:15:9: error: 'pair' was not declared in this scope
pair = new Pair[M];
^
0_0_38266618_29215.cpp:15:20: error: 'Pair' does not name a type
pair = new Pair[M];
^
0_0_38266618_29215.cpp: At global scope:
0_0_38266618_29215.cpp:62:23: error: expected initializer before 'Comparable'
class Pair implements Comparable<Pair> {
^
|