| Problem | railway |
|---|---|
| User | benji9736 |
| Submission Time | 2025-12-17 14:50:00 |
| 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:9:31: error: conversion from ‘long long int’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
9 | for (pair<int, int> i : adj[n]){
| ^
railway.cpp: In function ‘int main()’:
railway.cpp:49:26: error: no matching function for call to ‘std::vector<long long int>::push_back(<brace-enclosed initializer list>)’
49 | adj[a].push_back({b, c});
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from railway.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: