Problem mrt
User oiu890
Submission Time 2024-02-12 20:24:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp:1:6: error: ‘pq’ does not name a type
1 | pq.push({dist[v], v});
| ^~
mrt.cpp:1:26: error: expected unqualified-id before ‘)’ token
1 | pq.push({dist[v], v});
| ^
mrt.cpp:2:13: error: expected declaration before ‘}’ token
2 | }
| ^
mrt.cpp:3:9: error: expected declaration before ‘}’ token
3 | }
| ^
mrt.cpp:4:5: error: expected declaration before ‘}’ token
4 | }
| ^
mrt.cpp:6:5: error: ‘cout’ does not name a type
6 | cout << dist[end] << "\n";
| ^~~~
mrt.cpp:7:1: error: expected declaration before ‘}’ token
7 | }
| ^
mrt.cpp: In function ‘int main()’:
mrt.cpp:10:5: error: ‘ios’ has not been declared
10 | ios::sync_with_stdio(0);
| ^~~
mrt.cpp:11:5: error: ‘cin’ was not declared in this scope
11 | cin.tie