QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294953#6306. Chase GameHuangHanShengCompile Error//C++203.4kb2023-12-30 17:40:492023-12-30 17:40:50

Details

answer.code: In function ‘void solve()’:
answer.code:133:9: error: invalid initialization of reference of type ‘std::vector<std::vector<std::pair<long long int, long long int> > >&’ from expression of type ‘std::vector<std::vector<std::pair<int, int> >, std::allocator<std::vector<std::pair<int, int> > > >’
  133 |     dij(vt2,1,dis_1,0);
      |         ^~~
answer.code:61:31: note: in passing argument 1 of ‘void dij(std::vector<std::vector<std::pair<long long int, long long int> > >&, int, long long int*, int)’
   61 | void dij(vector<vector<pll>> &mp,int s, ll* dis,int op)
      |          ~~~~~~~~~~~~~~~~~~~~~^~