Problem lis
User nzx
Submission Time 2026-04-10 07:33:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:29:25: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘int [1000005]’
29 | cout << lengthOfLIS(nums);
| ^~~~
lis.cpp:9:30: note: in passing argument 1 of ‘int lengthOfLIS(std::vector<int>&)’
9 | int lengthOfLIS(vector<int>& nums) {
| ~~~~~~~~~~~~~^~~~