Problem lineup
User sharelletqx
Submission Time 2026-05-16 11:56:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int32_t main()’:
lineup.cpp:20:8: error: ‘r’ was not declared in this scope
20 | m[x[r].second]++;
| ^
lineup.cpp:26:12: error: ‘mins’ was not declared in this scope
26 | bestans=mins(bestans,x[r].first-x[l].first);
| ^~~~
lineup.cpp:34:7: error: expected ‘}’ at end of input
34 | }
| ^
lineup.cpp:4:15: note: to match this ‘{’
4 | int32_t main(){
| ^