Problem lis_easy
User christal
Submission Time 2023-12-20 15:46:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:7:18: error: a function-definition is not allowed here before ‘{’ token
7 | int lis(int idx){
| ^
lis_easy.cpp:20:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | cout << ans;
| ^~~
| abs