QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#734324 | #5254. Differences | ucup-team3932 | Compile Error | / | / | C++20 | 1.4kb | 2024-11-11 08:55:13 | 2024-11-11 08:55:21 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:42:7: error: ‘reverse’ was not declared in this scope 42 | reverse(to_remove.begin(), to_remove.end()); | ^~~~~~~ answer.code:59:19: error: no matching function for call to ‘find(std::vector<std::__cxx11::basic_string<char> >::iterator, std::vector<std::__cxx11::basic_string<char> >::iterator, const std::__cxx11::basic_string<char>&)’ 59 | cout << find(S.begin(), S.end(), candidate) - S.begin() + 1 << "\n"; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/locale_facets.h:48, from /usr/include/c++/13/bits/basic_ios.h:37, from /usr/include/c++/13/ios:46, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41, from answer.code:1: /usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)’ 435 | find(istreambuf_iterator<_CharT> __first, | ^~~~ /usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed: answer.code:59:19: note: ‘__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >’ is not derived from ‘std::istreambuf_iterator<_CharT>’ 59 | cout << find(S.begin(), S.end(), candidate) - S.begin() + 1 << "\n"; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~