QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#783839#6660. 택시 여행HuluoboCompile Error//C++141.6kb2024-11-26 11:59:492024-11-26 11:59:50

Details

answer.code: In function ‘std::vector<long long int> travel(std::vector<long long int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:48:26: error: ‘class std::priority_queue<std::pair<int, std::pair<int, int> >, std::vector<std::pair<int, std::pair<int, int> > >, std::greater<std::pair<int, std::pair<int, int> > > >’ has no member named ‘frnt’
   48 |                 auto t=q.frnt();q.pop();
      |                          ^~~~
answer.code:54:30: error: ‘u’ was not declared in this scope
   54 |                 for(auto t:g[u])
      |                              ^
answer.code:57:50: error: ‘w’ was not declared in this scope
   57 |                         if(dist[now][frm]+B[frm]*w<dist[j][frm])
      |                                                  ^
answer.code:59:61: error: ‘b’ was not declared in this scope
   59 |                                 dist[j][frm]=dist[now][frm]+b[i]*w;
      |                                                             ^
answer.code:59:63: error: ‘i’ was not declared in this scope
   59 |                                 dist[j][frm]=dist[now][frm]+b[i]*w;
      |                                                               ^
answer.code:62:57: error: ‘w’ was not declared in this scope
   62 |                         if(dist[now][frm]+A[now]+B[now]*w<dist[j][now])
      |                                                         ^
answer.code:70:39: error: invalid conversion from ‘int*’ to ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} [-fpermissive]
   70 |         fo(i,1,n-1) C[i-1]=min_element(dist[i],dist[i]+n);
      |                            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      |                                       |
      |                                       int*
answer.code:71:16: error: could not convert ‘C’ from ‘vector<int>’ to ‘vector<long long int>’
   71 |         return C;
      |                ^
      |                |
      |                vector<int>