| Problem | railway |
|---|---|
| User | benji9736 |
| Submission Time | 2025-12-17 14:46:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
railway.cpp: In function ‘void dfs(long long int, long long int, long long int)’:
railway.cpp:10:14: error: ‘class std::vector<long long int>’ has no member named ‘first’
10 | if (adj[i].first != p){
| ^~~~~
railway.cpp:11:15: error: ‘class std::vector<long long int>’ has no member named ‘first’
11 | dfs(adj[i].first, n, d + adj[i].second);
| ^~~~~
railway.cpp:11:36: error: ‘class std::vector<long long int>’ has no member named ‘second’
11 | dfs(adj[i].first, n, d + adj[i].second);
| ^~~~~~
railway.cpp: In function ‘int main()’:
railway.cpp:48:26: error: no matching function for call to ‘std::vector<long long int>::push_back(<brace-enclosed initializer list>)’
48 | adj[a].push_back({b, c});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c