Problem mrt
User FIips
Submission Time 2025-02-24 14:19:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp: In function ‘int32_t main()’:
mrt.cpp:43:32: error: expected ‘)’ before ‘}’ token
43 | pq.push(make_pair(dist[it]}, it));
| ~ ^
| )
mrt.cpp:43:33: error: expected primary-expression before ‘,’ token
43 | pq.push(make_pair(dist[it]}, it));
| ^
mrt.cpp:48:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
48 | ans = dist[y];
| ^~~
| abs
mrt.cpp:48:9: error: ‘dist’ was not declared in this scope
48 | ans = dist[y];
| ^~~~
mrt.cpp: At global scope:
mrt.cpp:51:1: error: expected declaration before ‘}’ token
51 | }
| ^