Problem race
User grapecoder
Submission Time 2024-06-01 15:37:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

race.cpp: In function ‘std::map<long long int, long long int> solve(int, int, int)’:
race.cpp:79:57: error: no match for ‘operator[]’ (operand types are ‘int [200010]’ and ‘std::pair<const long long int, long long int>’)
79 | auto thing = m.find(k + (2 * dist[x]) - dist[j]);
| ^
race.cpp:92:28: error: ‘j’ was not declared in this scope
92 | m[dist[x]] = min(m[j.first], depth);
| ^