stove.cpp:1:1: error: 'import' does not name a type
1 | import java.util.ArrayList;
| ^~~~~~
stove.cpp:2:1: error: 'import' does not name a type
2 | import java.util.Collections;
| ^~~~~~
stove.cpp:3:1: error: 'import' does not name a type
3 | import java.util.Scanner;
| ^~~~~~
stove.cpp:6:11: error: expected ':' before 'static'
6 | public static void main(String[] args){
| ^~~~~~~
| :
stove.cpp:6:29: error: 'String' has not been declared
6 | public static void main(String[] args){
| ^~~~~~
stove.cpp:6:38: error: expected ',' or '...' before 'args'
6 | public static void main(String[] args){
| ^~~~
stove.cpp:32:2: error: expected ';' after class definition
32 | }
| ^
| ;
stove.cpp: In static member function 'static void stove::main(int*)':
stove.cpp:7:9: error: 'Scanner' was not declared in this scope
7 | Scanner scanner = new Scanner(System.in);
| ^~~~~~~
stove.cpp:8:17: error: 'scanner' was not declared in this scope
8 | int N = scanner.nextInt();
| ^~~~~~~
stove.cpp:11:9: error: 'ArrayList' was not declared in this scope
11 | ArrayList<Integer> times = new ArrayList<>();
| ^~~~~~~~~
stove.cpp:11:19: error: 'Integer' was not declared in this scope
11 | ArrayList<Integer> times = new ArrayList<>();
| ^~~~~~~
stove.cpp:11:28: error: 'times' was not declared in this scope
11 | ArrayList<Integer> times = new ArrayList<>();
| ^~~~~
stove.cpp:11:40: error: 'ArrayList' does not name a type
11 | ArrayList<Integer> times = new ArrayList<>();
| ^~~~~~~~~
stove.cpp:11:50: error: expected primary-expression before '>' token
11 | ArrayList<Integer> times = new ArrayList<>();
| ^
stove.cpp:11:52: error: expected primary-expression before ')' token
11 | ArrayList<Integer> times = new ArrayList<>();
| ^
stove.cpp:19:28: error: 'diffTimes' was not declared in this scope
19 | ArrayList<Integer> diffTimes = new ArrayList<>();
| ^~~~~~~~~
stove.cpp:19:44: error: 'ArrayList' does not name a type
19 | ArrayList<Integer> diffTimes = new ArrayList<>();
| ^~~~~~~~~
stove.cpp:19:54: error: expected primary-expression before '>' token
19 | ArrayList<Integer> diffTimes = new ArrayList<>();
| ^
stove.cpp:19:56: error: expected primary-expression before ')' token
19 | ArrayList<Integer> diffTimes = new ArrayList<>();
| ^
stove.cpp:24:9: error: 'Collections' was not declared in this scope
24 | Collections.sort(diffTimes);
| ^~~~~~~~~~~
stove.cpp:30:9: error: 'System' was not declared in this scope
30 | System.out.println(length - sum);
| ^~~~~~