QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#628101 | #8235. Top Cluster | ucup-team1405# | Compile Error | / | / | C++23 | 5.2kb | 2024-10-10 18:34:39 | 2024-10-10 18:34:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void process(int)’: answer.code:129:38: error: invalid initialization of reference of type ‘__gnu_pbds::gp_hash_table<int, long long int>&’ from expression of type ‘__gnu_pbds::gp_hash_table<int, long long int, chash>’ 129 | dfs(to, children.back(), old, c); | ^~~ answer.code:81:64: note: in passing argument 3 of ‘void dfs(int, std::vector<int>&, __gnu_pbds::gp_hash_table<int, long long int>&, int)’ 81 | void dfs(int v, vector<int>& p, gp_hash_table<int, long long>& old, int prev = -1) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ answer.code:136:38: error: invalid initialization of reference of type ‘__gnu_pbds::gp_hash_table<int, long long int>&’ from expression of type ‘__gnu_pbds::gp_hash_table<int, long long int, chash>’ 136 | rollback(children[child_id], old, c); | ^~~ answer.code:100:62: note: in passing argument 2 of ‘void rollback(std::vector<int>&, __gnu_pbds::gp_hash_table<int, long long int>&, int)’ 100 | void rollback(vector<int>& v, gp_hash_table<int, long long>& old, int prev = -1) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ answer.code:151:31: error: invalid initialization of reference of type ‘__gnu_pbds::gp_hash_table<int, long long int>&’ from expression of type ‘__gnu_pbds::gp_hash_table<int, long long int, chash>’ 151 | rollback(children[i], old, c); | ^~~ answer.code:100:62: note: in passing argument 2 of ‘void rollback(std::vector<int>&, __gnu_pbds::gp_hash_table<int, long long int>&, int)’ 100 | void rollback(vector<int>& v, gp_hash_table<int, long long>& old, int prev = -1) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ answer.code:164:35: error: invalid initialization of reference of type ‘__gnu_pbds::gp_hash_table<int, long long int>&’ from expression of type ‘__gnu_pbds::gp_hash_table<int, long long int, chash>’ 164 | rollbackdist(children[i], old, c); | ^~~ answer.code:106:66: note: in passing argument 2 of ‘void rollbackdist(std::vector<int>&, __gnu_pbds::gp_hash_table<int, long long int>&, int)’ 106 | void rollbackdist(vector<int>& v, gp_hash_table<int, long long>& old, int prev = -1) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~