Problem mindeque
User hyishigh
Submission Time 2024-12-14 15:19:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mindeque.cpp: In function ‘int main()’:
mindeque.cpp:19:5: error: ‘ans1’ was not declared in this scope; did you mean ‘ans’?
19 | ans1++;
| ^~~~
| ans
mindeque.cpp:27:5: error: ‘ans1’ was not declared in this scope; did you mean ‘ans’?
27 | ans1-=1;
| ^~~~
| ans
mindeque.cpp:38:5: error: ‘ans1’ was not declared in this scope; did you mean ‘ans’?
38 | ans1++;
| ^~~~
| ans
mindeque.cpp:46:5: error: ‘ans1’ was not declared in this scope; did you mean ‘ans’?
46 | ans1-=1;
| ^~~~
| ans
mindeque.cpp:54:13: error: ‘ans1’ was not declared in this scope; did you mean ‘ans’?
54 | else if (ans1<1) {
| ^~~~
| ans