Problem lis_easy
User AndyChen
Submission Time 2026-03-27 15:40:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:13:3: error: expected ‘,’ or ‘;’ before ‘if’
13 | if (x>lis.end()){
| ^~
lis_easy.cpp:16:3: error: ‘else’ without a previous ‘if’
16 | else {
| ^~~~
lis_easy.cpp:17:15: error: unable to deduce ‘auto*’ from ‘x’
17 | auto *it = x;
| ^
lis_easy.cpp:17:15: note: mismatched types ‘auto*’ and ‘long long int’
lis_easy.cpp:19:20: error: expected ‘;’ before ‘}’ token
19 | cout << lis.size()
| ^
| ;
20 | }
| ~
lis_easy.cpp:20:2: error: expected ‘}’ at end of input
20 | }
| ^
lis_easy.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^