QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#161737#7105. Pixel Artucup-team1378#Compile Error//C++205.4kb2023-09-03 01:48:362023-09-03 01:48:37

Details

answer.code: In function ‘void solve()’:
answer.code:34:31: error: no matching function for call to ‘std::vector<std::array<int, 3> >::emplace_back(<brace-enclosed initializer list>)’
   34 |             rg[a].emplace_back({b,d,i});
      |             ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from /usr/include/c++/11/functional:62,
                 from answer.code:11:
/usr/include/c++/11/bits/vector.tcc:109:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::array<int, 3>; _Alloc = std::allocator<std::array<int, 3> >; std::vector<_Tp, _Alloc>::reference = std::array<int, 3>&]’
  109 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:109:7: note:   candidate expects 0 arguments, 1 provided
answer.code:39:31: error: no matching function for call to ‘std::vector<std::array<int, 3> >::emplace_back(<brace-enclosed initializer list>)’
   39 |             cl[b].emplace_back({a,c,i});
      |             ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/11/vector:72,
                 from /usr/include/c++/11/functional:62,
                 from answer.code:11:
/usr/include/c++/11/bits/vector.tcc:109:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::array<int, 3>; _Alloc = std::allocator<std::array<int, 3> >; std::vector<_Tp, _Alloc>::reference = std::array<int, 3>&]’
  109 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/vector.tcc:109:7: note:   candidate expects 0 arguments, 1 provided