Problem race
User PlayVoltz
Submission Time 2023-10-27 15:31:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

race.cpp: In function ‘int dfs_size(int, int)’:
race.cpp:19:14: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
19 | for (auto v:graph[u]){
| ^~~~~
| isgraph
race.cpp:21:15: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
21 | subtree[u]+=dfs(v.first, u);
| ^~~
| ffs
race.cpp:23:9: error: ‘sub’ was not declared in this scope; did you mean ‘fsub’?
23 | return sub[u];
| ^~~
| fsub
race.cpp: In function ‘int centroidfind(int, int, int)’:
race.cpp:27:14: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
27 | for (auto v:graph[u]){
| ^~~~~
| isgraph
race.cpp: In function ‘void check(int, int, int, int)’:
race.cpp:37:16: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
37 | for (auto num:g