Problem omnomnom2
User ForgottenDragon
Submission Time 2025-12-17 16:42:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom2.cpp: In function ‘void dfs1(long long int, long long int)’:
omnomnom2.cpp:12:19: error: ‘dfs’ was not declared in this scope; did you mean ‘dfs1’?
12 | if (i!=p) dfs(i, n), siz[n] += siz[i];
| ^~~
| dfs1
omnomnom2.cpp: At global scope:
omnomnom2.cpp:15:1: error: ‘voic’ does not name a type; did you mean ‘void’?
15 | voic dfs2(int v, int p) {
| ^~~~
| void
omnomnom2.cpp: In function ‘int main()’:
omnomnom2.cpp:40:5: error: ‘dfs2’ was not declared in this scope; did you mean ‘dfs1’?
40 | dfs2(0, -1);
| ^~~~
| dfs1