Problem lis
User ilovepythonandhatecplusplus
Submission Time 2024-04-19 14:45:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:13:13: error: conflicting declaration ‘std::stack<int> s’
13 | stack<int> s(N)
| ^
lis.cpp:12:17: note: previous declaration as ‘std::vector<int> s’
12 | vector<int> s(N);
| ^
lis.cpp:28:32: error: ‘l’ was not declared in this scope
28 | if (s[i] > s[j] && l[i] < l[j] + 1) {
| ^