QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#31604 | #4037. Absolute Pairwise Distance | flower | Compile Error | / | / | C++20 | 4.3kb | 2022-05-09 23:44:08 | 2022-05-18 04:28:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In lambda function: answer.code:134:35: error: ‘swap’ was not declared in this scope 134 | if(l > r) swap(l, r); | ^~~~ answer.code:134:35: note: suggested alternatives: 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:2143:5: note: ‘std::__cxx11::swap’ 2143 | swap(match_results<_Bi_iter, _Alloc>& __lhs, | ^~~~ In file included from /usr/include/c++/11/bits/stl_pair.h:59, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1927, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from answer.code:1: /usr/include/c++/11/bits/move.h:196:5: note: ‘std::swap’ 196 | swap(_Tp& __a, _Tp& __b) | ^~~~ /usr/include/c++/11/bits/move.h:196:5: note: ‘std::swap’ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1927, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from answer.code:1: /usr/include/c++/11/concepts:229:43: note: ‘std::ranges::__cust::swap’ 229 | inline constexpr __cust_swap::_Swap swap{}; | ^~~~ In file included from /usr/include/c++/11/exception:147, from /usr/include/c++/11/ios:39, 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/exception_ptr.h:218:5: note: ‘std::__exception_ptr::swap’ 218 | swap(exception_ptr& __lhs, exception_ptr& __rhs) | ^~~~ In file included from /usr/include/c++/11/filesystem:45, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:129, from answer.code:1: /usr/include/c++/11/bits/fs_path.h:693:15: note: ‘std::filesystem::__cxx11::swap’ 693 | inline void swap(path& __lhs, path& __rhs) noexcept { __lhs.swap(__rhs); } | ^~~~ In file included from /usr/include/c++/11/compare:39, from /usr/include/c++/11/bits/stl_pair.h:65, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1927, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41, from answer.code:1: /usr/include/c++/11/concepts:169:35: note: ‘std::ranges::__cust_swap::swap’ 169 | template<typename _Tp> void swap(_Tp&, _Tp&) = delete; | ^~~~