Problem videogames
User ansel
Submission Time 2024-12-30 16:20:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

videogames.cpp: In function ‘int main()’:
videogames.cpp:19:31: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | if (ansmap[PB[i]-K].size()) ans=max(ans, PA[i]-ansmap[PB[i]-K].back());
| ^~~
| abs