Problem lis_easy
User AppleOnAstick
Submission Time 2023-11-10 10:23:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:13:10: error: ‘j’ was not declared in this scope
13 | int arr[j];
| ^
lis_easy.cpp:14:19: error: ‘i’ was not declared in this scope
14 | for (int j=0; j<i; j++){
| ^
lis_easy.cpp:16:4: error: ‘LIS’ was not declared in this scope
16 | LIS[i]= max(LIS[i], LIS[j]+1);//choose the best
| ^~~
lis_easy.cpp: At global scope:
lis_easy.cpp:23:1: error: expected unqualified-id before ‘for’
23 | for(int i = 0; i<n; i++) {
| ^~~
lis_easy.cpp:23:16: error: ‘i’ does not name a type
23 | for(int i = 0; i<n; i++) {
| ^
lis_easy.cpp:23:21: error: ‘i’ does not name a type
23 | for(int i = 0; i<n; i++) {
| ^
lis_easy.cpp:26:2: error: ‘cout’ does not name a type
26 | cout << ans;
| ^~~~
lis_easy.cpp:27:2: error: expected unqualifie