You are viewing a single comment's thread. Return to all comments →
I figured it out myself! Gosh took me hours. the protype for the question is "vector solve(int n, vector> tree, vector> queries) {"
it should be "vector<long long> solve(int n, vector<vector<int>> tree, vector<vector<int>> queries) {"
Idiots!
Seems like cookies are disabled on this browser, please enable them to open this website
Super Maximum Cost Queries
You are viewing a single comment's thread. Return to all comments →
I figured it out myself! Gosh took me hours. the protype for the question is "vector solve(int n, vector> tree, vector> queries) {"
Idiots!