Problem lis_easy
User JhoCyber
Submission Time 2025-03-11 13:48:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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