QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#411374 | #8642. Spy 3 | hyforces# | Compile Error | / | / | C++20 | 6.1kb | 2024-05-15 12:19:24 | 2024-05-15 12:19:25 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Bitaro.code: In function ‘void traverse(int, int, int)’: Bitaro.code:51:25: error: no matching function for call to ‘std::vector<int>::push_back(Edge&)’ 51 | ans[i].push_back(ed[fe[tki][v]]); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/functional:62, from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, from /usr/include/c++/11/algorithm:74, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from Bitaro.code:1: /usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from ‘Edge’ to ‘const value_type&’ {aka ‘const int&’} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from ‘Edge’ to ‘std::vector<int>::value_type&&’ {aka ‘int&&’} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~