QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#841782 | #9775. The Witness | USA1 (Andrew He, Kevin Sun, Gennady Korotkevich)# | Compile Error | / | / | C++14 | 14.8kb | 2025-01-04 05:27:49 | 2025-01-04 05:28:01 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:105:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 105 | for(auto [x, y] : boundary_cells){ | ^ answer.code:147:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 147 | for(auto [u, v] : forced_edges){ | ^ answer.code:164:30: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 164 | auto [x, y] = boundary_cells[i]; | ^ answer.code:301:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 301 | auto [x, y] = forced_path_ends[i]; | ^ answer.code:327:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 327 | for(auto [x, y] : segs_for_nested_check[s]){ | ^ answer.code:328:34: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 328 | for(auto [c, d] : segs_for_nested_check[s]){ | ^ answer.code:345:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 345 | for(auto [x, y] : all_edges){ | ^ answer.code: In lambda function: answer.code:419:28: error: missing template arguments before ‘{’ token 419 | return pair{a.top_idx, a.bot_idx} < pair{b.top_idx, b.bot_idx}; | ^ answer.code:419:28: error: expected ‘;’ before ‘{’ token 419 | return pair{a.top_idx, a.bot_idx} < pair{b.top_idx, b.bot_idx}; | ^ | ; answer.code:419:49: error: expected ‘;’ before ‘}’ token 419 | return pair{a.top_idx, a.bot_idx} < pair{b.top_idx, b.bot_idx}; | ^ | ; answer.code:419:51: error: expected primary-expression before ‘<’ token 419 | return pair{a.top_idx, a.bot_idx} < pair{b.top_idx, b.bot_idx}; | ^ answer.code:419:57: error: missing template arguments before ‘{’ token 419 | return pair{a.top_idx, a.bot_idx} < pair{b.top_idx, b.bot_idx}; | ^ In file included from /usr/include/c++/13/bits/stl_algobase.h:71, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<main()::path_candidate*, std::vector<main()::path_candidate> >; _Iterator2 = __gnu_cxx::__normal_iterator<main()::path_candidate*, std::vector<main()::path_candidate> >; _Compare = main()::<lambda(auto:4, auto:5)>]’: /usr/include/c++/13/bits/stl_algo.h:1819:14: required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<main()::path_candidate*, vector<main()::path_candidate> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(auto:4, auto:5)> >]’ /usr/include/c++/13/bits/stl_algo.h:1859:25: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<main()::path_candidate*, vector<main()::path_candidate> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(auto:4, auto:5)> >]’ /usr/include/c++/13/bits/stl_algo.h:1950:31: required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<main()::path_candidate*, vector<main()::path_candidate> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(auto:4, auto:5)> >]’ /usr/include/c++/13/bits/stl_algo.h:4894:18: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<main()::path_candidate*, vector<main()::path_candidate> >; _Compare = main()::<lambda(auto:4, auto:5)>]’ answer.code:418:6: required from here /usr/include/c++/13/bits/predefined_ops.h:158:30: error: void value not ignored as it ought to be 158 | { return bool(_M_comp(*__it1, *__it2)); } | ~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operat...