QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#628101#8235. Top Clusterucup-team1405#Compile Error//C++235.2kb2024-10-10 18:34:392024-10-10 18:34:40

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) {
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~