Problem | humantrafficking |
---|---|
User | dacashew |
Submission Time | 2023-11-27 17:35:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
humantrafficking.cpp:41:31: error: array bound is not an integer constant before ‘]’ token
41 | vector<pair<int,int>> adj[NMAX];
| ^
humantrafficking.cpp: In function ‘long long int dijkstra()’:
humantrafficking.cpp:59:18: error: ‘adj’ was not declared in this scope
59 | for (auto it : adj[cnode]) {
| ^~~
humantrafficking.cpp:62:40: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
62 | pq.push({dst[it.second], it.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from huma