stove.cpp:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
stove.cpp:5:8: error: expected ':' before 'static'
5 | public static void main(String[] args) {
| ^~~~~~~
| :
stove.cpp:5:26: error: 'String' has not been declared
5 | public static void main(String[] args) {
| ^~~~~~
stove.cpp:5:35: error: expected ',' or '...' before 'args'
5 | public static void main(String[] args) {
| ^~~~
stove.cpp:40:2: error: expected ';' after class definition
40 | }
| ^
| ;
stove.cpp: In static member function 'static void Stove::main(int*)':
stove.cpp:6:3: error: 'Scanner' was not declared in this scope
6 | Scanner obj = new Scanner(System.in);
| ^~~~~~~
stove.cpp:8:7: error: 'obj' was not declared in this scope
8 | n = obj.nextInt();
| ^~~
stove.cpp:10:15: error: initializer fails to determine size of 'arr'
10 | int arr[] = new int [n];
| ^~~~~~~~~~~
stove.cpp:10:15: error: array must be initialized with a brace-enclosed initializer
stove.cpp:16:7: error: 'System' was not declared in this scope
16 | System.out.println(ans);
| ^~~~~~
stove.cpp:19:16: error: initializer fails to determine size of 'sarr'
19 | int sarr[] = new int[n-1];
| ^~~~~~~~~~~~
stove.cpp:19:16: error: array must be initialized with a brace-enclosed initializer
stove.cpp:37:3: error: 'System' was not declared in this scope
37 | System.out.println(ans);
| ^~~~~~