Problem mrt
User TheInvadr
Submission Time 2023-03-07 19:43:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrt.cpp:3:34: error: template argument 1 is invalid
3 | vector<vector<pair<int,int>> graph;
| ^~~~~
mrt.cpp:3:34: error: template argument 2 is invalid
mrt.cpp: In function ‘std::vector<int> dikstra(int)’:
mrt.cpp:17:29: error: ‘class std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >’ has no member named ‘front’
17 | pair<int,int> p = q.front();
| ^~~~~
mrt.cpp:21:36: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
21 | for(pair<int,int> pa : graph[e]){
| ^~~~~
| isgraph
mrt.cpp: In function ‘int main()’:
mrt.cpp:34:5: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
34 | graph.