QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#321157 | #4830. Transfer of Duty | hyforces | Compile Error | / | / | C++20 | 901b | 2024-02-04 05:33:41 | 2024-02-04 05:33:42 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void qq()’: answer.code:18:15: error: reference to ‘hash’ is ambiguous 18 | hv^=x,ch^=hash[x]; | ^~~~ In file included from /usr/include/c++/11/string_view:42, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/bits/functional_hash.h:59:12: note: candidates are: ‘template<class _Tp> struct std::hash’ 59 | struct hash; | ^~~~ answer.code:13:5: note: ‘long long unsigned int hash [1000100]’ 13 | ull hash[N]; | ^~~~ answer.code:20:19: error: reference to ‘hash’ is ambiguous 20 | else if(hv<N&&hash[hv]==ch)cout<<hv<<endl; | ^~~~ In file included from /usr/include/c++/11/string_view:42, from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/bits/functional_hash.h:59:12: note: candidates are: ‘template<class _Tp> struct std::hash’ 59 | struct hash; | ^~~~ answer.code:13:5: note: ‘long long unsigned int hash [1000100]’ 13 | ull hash[N]; | ^~~~ answer.code: At global scope: answer.code:23:1: error: two or more data types in declaration of ‘start’ 23 | void | ^~~~ answer.code: In function ‘void resume()’: answer.code:32:8: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’) 32 | cin<<hv<<" "<<ch<<endl; | ~~~^~~~ | | | | | int | std::istream {aka std::basic_istream<char>} answer.code:32:8: note: candidate: ‘operator<<(int, int)’ (built-in) 32 | cin<<hv<<" "<<ch<<endl; | ~~~^~~~ answer.code:32:8: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’ In file included from /usr/include/c++/11/regex:63, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110, from answer.code:1: /usr/include/c++/11/bits/regex.h:1671:5: note: candidate: ‘template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::sub_match<_Bi_iter>&)’ 1671 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/11/bits/regex.h:1671:5: note: template argument deduction/substitution failed: answer.code:32:10: note: ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘std::basic_ostream<_CharT, _Traits>’ 32 | cin<<hv<<" "<<ch<<endl; | ^~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:45, from answer.code:1: /usr/include/c++/11/cstddef:126:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(std::byte, _IntegerType)’ 126 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/11/cstddef:126:5: note: template argument deduction/substitution failed: answer.code:32:5: note: cannot convert ‘std::cin’ (type ‘std::istream’ {aka ‘std::basic_istream<char>’}) to type ‘std::byte’ 32 | cin<<hv<<" "<<ch<<endl; | ^~~ In file included from /usr/include/c++/11/bits/basic_string.h:48, from /usr/include/c++/11/string:55, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: ...