Problem oranges2
User Potato3218
Submission Time 2022-12-24 15:15:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘void roottree(long long int, long long int)’:
oranges2.cpp:30:19: error: ‘adjlist’ was not declared in this scope
30 | for (pi itr : adjlist[x]) {
| ^~~~~~~
oranges2.cpp: In function ‘long long int lca(long long int, long long int)’:
oranges2.cpp:48:5: error: ‘DEBGPRINT’ was not declared in this scope
48 | DEBGPRINT(maxP[b][1]);
| ^~~~~~~~~
oranges2.cpp: In function ‘void predist()’:
oranges2.cpp:69:23: error: ‘adjlist’ was not declared in this scope
69 | for(auto itr: adjlist[i]){
| ^~~~~~~
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:87:35: error: no matching function for call to ‘std::vector<long long int>::push_back(<brace-enclosed initializer list>)’
87 | adjlist[s].push_back({e,w});
| ^
In file included from /usr/include/c++/9/vector:67,