0_0_39177372_24662.cpp:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
0_0_39177372_24662.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'
0_0_39177372_24662.cpp:3:11: error: expected ':' before 'static'
3 | public static void main(String[] args){
| ^~~~~~~
| :
0_0_39177372_24662.cpp:3:29: error: 'String' has not been declared
3 | public static void main(String[] args){
| ^~~~~~
0_0_39177372_24662.cpp:3:38: error: expected ',' or '...' before 'args'
3 | public static void main(String[] args){
| ^~~~
0_0_39177372_24662.cpp:23:2: error: expected ';' after class definition
23 | }
| ^
| ;
0_0_39177372_24662.cpp: In static member function 'static void Main::main(int*)':
0_0_39177372_24662.cpp:5:9: error: 'Scanner' was not declared in this scope
5 | Scanner sc=new Scanner(System.in);
| ^~~~~~~
0_0_39177372_24662.cpp:6:15: error: 'sc' was not declared in this scope
6 | while(sc.hasNext()){
| ^~
0_0_39177372_24662.cpp:8:16: error: structured binding declaration cannot have type 'int'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^~
0_0_39177372_24662.cpp:8:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
0_0_39177372_24662.cpp:8:16: error: empty structured binding declaration
0_0_39177372_24662.cpp:8:19: error: expected initializer before 'a'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^
0_0_39177372_24662.cpp:8:37: error: structured binding declaration cannot have type 'int'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^~
0_0_39177372_24662.cpp:8:37: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
0_0_39177372_24662.cpp:8:37: error: empty structured binding declaration
0_0_39177372_24662.cpp:8:40: error: expected initializer before 'dp'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^~
0_0_39177372_24662.cpp:8:59: error: structured binding declaration cannot have type 'int'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^~
0_0_39177372_24662.cpp:8:59: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
0_0_39177372_24662.cpp:8:59: error: empty structured binding declaration
0_0_39177372_24662.cpp:8:62: error: expected initializer before 'dp2'
8 | int[] a=new int[n+1];int[] dp=new int[m+1];int[] dp2=new int[m+1];
| ^~~
0_0_39177372_24662.cpp:10:17: error: 'a' was not declared in this scope
10 | a[i]=sc.nextInt();
| ^
0_0_39177372_24662.cpp:12:13: error: 'dp' was not declared in this scope
12 | dp[1]=a[1];dp2[1]=a[1];
| ^~
0_0_39177372_24662.cpp:12:19: error: 'a' was not declared in this scope
12 | dp[1]=a[1];dp2[1]=a[1];
| ^
0_0_39177372_24662.cpp:12:24: error: 'dp2' was not declared in this scope
12 | dp[1]=a[1];dp2[1]=a[1];
| ^~~
0_0_39177372_24662.cpp:14:28: error: 'Math' was not declared in this scope
14 | for(j=1;j<=Math.min(i, m);j++){
| ^~~~
0_0_39177372_24662.cpp:18:25: error: 'Math' was not declared in this scope
18 | dp[j-1]=Math.max(dp[j-1], dp2[j-1]);
| ^~~~
0_0_39177372_24662.cpp:20:13: error: 'System' was not declared in this scope
20 | System.out.println(dp[m]);
| ^~~~~~
|