0_0_39371421_32756.cpp:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
0_0_39371421_32756.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'
0_0_39371421_32756.cpp:5:11: error: expected ':' before 'static'
5 | public static void sumOfSub_Sequence(int[] nums, int N, int i) {
| ^~~~~~~
| :
0_0_39371421_32756.cpp:5:48: error: expected ',' or '...' before 'nums'
5 | public static void sumOfSub_Sequence(int[] nums, int N, int i) {
| ^~~~
0_0_39371421_32756.cpp:34:11: error: expected ':' before 'static'
34 | public static void main(String[] args) {
| ^~~~~~~
| :
0_0_39371421_32756.cpp:34:29: error: 'String' has not been declared
34 | public static void main(String[] args) {
| ^~~~~~
0_0_39371421_32756.cpp:34:38: error: expected ',' or '...' before 'args'
34 | public static void main(String[] args) {
| ^~~~
0_0_39371421_32756.cpp:57:2: error: expected ';' after class definition
57 | }
| ^
| ;
0_0_39371421_32756.cpp: In static member function 'static void MaxSum::sumOfSub_Sequence(int*)':
0_0_39371421_32756.cpp:11:19: error: 'nums' was not declared in this scope
11 | int ans = nums[0];
| ^~~~
0_0_39371421_32756.cpp:14:30: error: 'N' was not declared in this scope
14 | for (int j = 1; j <= N; j++) {
| ^
0_0_39371421_32756.cpp:30:9: error: 'System' was not declared in this scope
30 | System.out.println("Case " + (i + 1) + ":");
| ^~~~~~
0_0_39371421_32756.cpp:30:39: error: 'i' was not declared in this scope
30 | System.out.println("Case " + (i + 1) + ":");
| ^
0_0_39371421_32756.cpp:31:45: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
31 | System.out.println(ans + " " + left + " " + right);
| ~~~~~~~~~~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
0_0_39371421_32756.cpp: In static member function 'static void MaxSum::main(int*)':
0_0_39371421_32756.cpp:35:9: error: 'Scanner' was not declared in this scope
35 | Scanner in = new Scanner(System.in);
| ^~~~~~~
0_0_39371421_32756.cpp:37:12: error: structured binding declaration cannot have type 'int'
37 | int[] nums = new int[100000];
| ^~
0_0_39371421_32756.cpp:37:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
0_0_39371421_32756.cpp:37:12: error: empty structured binding declaration
0_0_39371421_32756.cpp:37:15: error: expected initializer before 'nums'
37 | int[] nums = new int[100000];
| ^~~~
0_0_39371421_32756.cpp:38:13: error: 'in' was not declared in this scope; did you mean 'int'?
38 | T = in.nextInt();
| ^~
| int
0_0_39371421_32756.cpp:46:17: error: 'nums' was not declared in this scope
46 | nums[j] = in.nextInt();
| ^~~~
0_0_39371421_32756.cpp:48:31: error: 'nums' was not declared in this scope
48 | sumOfSub_Sequence(nums, N, i);
| ^~~~
0_0_39371421_32756.cpp:52:17: error: 'System' was not declared in this scope
52 | System.out.println();
| ^~~~~~
|