Problem payraise
User KingKav199
Submission Time 2023-12-13 15:20:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

payraise.cpp: In function ‘void dfs(int, int)’:
payraise.cpp:13:11: error: ‘node’ was not declared in this scope
13 | pre_order[node] = counter; //subtree to range
| ^~~~
payraise.cpp:17:14: error: ‘adj’ was not declared in this scope
17 | for (int i : adj[x]) { //subtree to range or toposort use for (int i : adjlist [x]) dfs(i);
| ^~~