Problem lis_easy
User RandomCtfNoob
Submission Time 2024-04-17 17:06:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:14:2: error: expected initializer before ‘for’
14 | for (i = 1; i <= tets; i++){
| ^~~
lis_easy.cpp:14:28: error: expected ‘;’ before ‘)’ token
14 | for (i = 1; i <= tets; i++){
| ^
| ;
lis_easy.cpp:19:3: error: ‘LIS’ was not declared in this scope
19 | LIS[i-1] = 1;
| ^~~
lis_easy.cpp:24:36: error: ‘LIS’ was not declared in this scope
24 | if (arr[i] > arr[j] && LIS[i] < LIS[j] + 1) {
| ^~~
lis_easy.cpp:30:18: error: ‘LIS’ was not declared in this scope
30 | if (maxcount < LIS[i-1]){
| ^~~