Problem lis
User DoubleShaurya
Submission Time 2024-02-16 19:18:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int lis(int*, int)’:
lis.cpp:8:18: error: ‘max’ was not declared in this scope
8 | max_so_far = max(max_so_far, current_max);
| ^~~
lis.cpp: In function ‘int main()’:
lis.cpp:15:3: error: ‘cin’ was not declared in this scope
15 | cin >> n;
| ^~~
lis.cpp:20:3: error: ‘cout’ was not declared in this scope
20 | cout << lis(arr, n) << endl;
| ^~~~
lis.cpp:20:26: error: ‘endl’ was not declared in this scope
20 | cout << lis(arr, n) << endl;
| ^~~~