Problem rainbowroad
User jatrophalouvre
Submission Time 2024-07-01 02:11:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rainbowroad.cpp:8:1: error: ‘vector’ does not name a type
8 | vector<PII> s[N];
| ^~~~~~
rainbowroad.cpp:10:1: error: ‘vector’ does not name a type
10 | vector<int> ne[L];
| ^~~~~~
rainbowroad.cpp: In function ‘void dfs(long long int, long long int)’:
rainbowroad.cpp:14:22: error: ‘s’ was not declared in this scope
14 | for (auto [v, w]:s[u]) if (v!=p) dfs(v, u);
| ^
rainbowroad.cpp:17:22: error: ‘s’ was not declared in this scope
17 | for (auto [v, w]:s[u]) if (v!=p)
| ^
rainbowroad.cpp:21:25: error: ‘ne’ was not declared in this scope; did you mean ‘n’?
21 | for (auto j:ne[i|(1<<w)])
| ^~
| n
rainbowroad.cpp: In function ‘int main()’:
rainbowroad.cpp:36:9: error: ‘s’ was not declared in this scope
36 | s[u].push_back({v, w});
|