Problem lis
User YEethui
Submission Time 2023-10-31 22:46:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:3:17: error: ‘vector’ was not declared in this scope
3 | int lengthOfLIS(vector<int>& nums){
| ^~~~~~
lis.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
lis.cpp:3:24: error: expected primary-expression before ‘int’
3 | int lengthOfLIS(vector<int>& nums){
| ^~~
lis.cpp: In function ‘int main()’:
lis.cpp:21:5: error: ‘vector’ was not declared in this scope
21 | vector<int> nums;
| ^~~~~~
lis.cpp:21:5: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
lis.cpp:21:12: error: expected primary-expression before ‘int’
21 | vector<int> nums;
| ^~~
lis.cpp:25:9: error: ‘nums’ was not declared in this s