Problem erp
User grapecoder
Submission Time 2023-11-04 15:11:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

erp.cpp: In function ‘int main()’:
erp.cpp:99:18: error: ‘dis’ was not declared in this scope; did you mean ‘dist’?
99 | ans = max(ans, dis[N - 1] - (dist[Y] + opp[X]) - 1);
| ^~~
| dist
erp.cpp:102:2: error: expected ‘}’ at end of input
102 | }
| ^
erp.cpp:31:12: note: to match this ‘{’
31 | int main() {
| ^