Problem lis_easy
User AndyChen
Submission Time 2026-03-27 15:41:32
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:20:20: error: expected ‘;’ before ‘}’ token
20 | cout << lis.size()
| ^
| ;
21 | }
| ~