Problem truck
User MegaG
Submission Time 2026-02-18 21:21:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

truck.cpp:30:1: error: ‘vector’ does not name a type
30 | vector<AdjEdge> adj[MAXN];
| ^~~~~~
truck.cpp: In function ‘void dfs(int, int, int, long long int)’:
truck.cpp:46:20: error: ‘adj’ was not declared in this scope
46 | for (auto& e : adj[v]) {
| ^~~
truck.cpp: In function ‘void decompose(int, int)’:
truck.cpp:60:20: error: ‘adj’ was not declared in this scope
60 | for (auto& e : adj[v]) {
| ^~~
truck.cpp: In function ‘int main()’:
truck.cpp:174:9: error: ‘adj’ was not declared in this scope
174 | adj[a].push_back({b, i, d});
| ^~~