Problem factories
User PlayVoltz
Submission Time 2023-10-14 11:38:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp: In function ‘void build(long long int)’:
factories.cpp:44:52: error: too few arguments to function ‘long long int dfs_size(long long int, long long int, long long int)’
44 | int centroid = get_centroid(u, u, dfs_size(u, u));
| ^
factories.cpp:18:5: note: declared here
18 | int dfs_size(int u, int p, int d){
| ^~~~~~~~
factories.cpp:44:20: error: ‘get_centroid’ was not declared in this scope; did you mean ‘add_centroid’?
44 | int centroid = get_centroid(u, u, dfs_size(u, u));
| ^~~~~~~~~~~~
| add_centroid
factories.cpp:45:5: error: ‘blocked’ was not declared in this scope; did you mean ‘clock’?
45 | blocked[centroid] = true;
| ^~~~~~~
| clock
factories.cpp:46:18: error: ‘c’ was not declared in this scope
46 | add_centroid(c, c, c);
|