Problem parade
User Xiaoyang
Submission Time 2024-12-20 19:56:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

parade.cpp: In function ‘void dfs(long long int, long long int)’:
parade.cpp:20:19: error: request for member ‘second’ in ‘u’, which is of non-class type ‘long long int’
20 | sumfromroot += u.second * pop[x.first];
| ^~~~~~
parade.cpp:20:32: error: ‘x’ was not declared in this scope
20 | sumfromroot += u.second * pop[x.first];
| ^