Problem ningning
User Shadow1
Submission Time 2024-12-21 12:48:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ningning.cpp: In function ‘void dfs2(long long int, long long int, long long int)’:
ningning.cpp:48:36: error: ‘n’ was not declared in this scope
48 | ans[v] = cost + (a[u] ^ a[v]) * (n - sub[u]);
| ^