Problem lis_easy
User nzx
Submission Time 2025-10-28 21:15:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:28:17: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘int [n]’
28 | cout << LIS(arr));
| ^~~
lis_easy.cpp:4:22: note: in passing argument 1 of ‘int LIS(std::vector<int>&)’
4 | int LIS(vector<int>& arr)
| ~~~~~~~~~~~~~^~~