| Problem | railway |
|---|---|
| User | ForgottenDragon |
| Submission Time | 2025-12-17 14:38:31 |
| 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:12:19: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’ in initialization
12 | for (int i: adj[n]) if (i.first!=p) {
| ^
railway.cpp:12:28: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
12 | for (int i: adj[n]) if (i.first!=p) {
| ^~~~~
railway.cpp:13:9: error: request for member ‘first’ in ‘i’, which is of non-class type ‘long long int’
13 | dfs(i.first, n, d+i.second);
| ^~~~~
railway.cpp:13:23: error: request for member ‘second’ in ‘i’, which is of non-class type ‘long long int’
13 | dfs(i.first, n, d+i.second);
| ^~~~~~
railway.cpp: In function ‘int main()’:
railway.cpp:45:16: error: ‘pax’ was not declared in this scope; did you mean ‘par’?
45 | p