Problem videogames
User zhehanp
Submission Time 2024-12-30 17:23:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

videogames.cpp: In function ‘int main()’:
videogames.cpp:29:42: error: ‘val’ was not declared in this scope
29 | max_enjoy=max(max_enjoy,e[i]-val[v[i]-k]);
| ^~~
videogames.cpp:33:13: error: ‘val’ was not declared in this scope
33 | val[v[i]]=e[i];
| ^~~