| Problem | railway |
|---|---|
| User | benji9736 |
| Submission Time | 2025-12-17 14:42:16 |
| 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:9: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
10 | if (i.first != p){
| ^~~~~
railway.cpp:11:10: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
11 | dfs(i.first, n, d + i.second);
| ^~~~~
railway.cpp:11:26: error: request for member ‘second’ in ‘i’, which is of non-class type ‘long long int’
11 | dfs(i.first, n, d + 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++/9/functional:62,