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

Compile Error

payraise.cpp:6:1: error: ‘vector’ does not name a type
6 | vector<int> adjlist[1000001]; //subtree to range
| ^~~~~~
payraise.cpp: In function ‘void dfs(int, int)’:
payraise.cpp:13:1: error: ‘preorder’ was not declared in this scope; did you mean ‘pre_order’?
13 | preorder[node] = counter; //subtree to range
| ^~~~~~~~
| pre_order
payraise.cpp:13:10: error: ‘node’ was not declared in this scope
13 | preorder[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);
| ^~~