QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#161737 | #7105. Pixel Art | ucup-team1378# | Compile Error | / | / | C++20 | 5.4kb | 2023-09-03 01:48:36 | 2023-09-03 01:48:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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