QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#721237 | #9225. Fibonacci Fusion | ucup-team3862# | Compile Error | / | / | C++20 | 1.8kb | 2024-11-07 15:38:42 | 2024-11-07 15:38:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In lambda function: answer.code:33:40: error: ‘c’ was not declared in this scope 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ^ answer.code:33:36: error: there are no arguments to ‘str’ that depend on a template parameter, so a declaration of ‘str’ must be available [-fpermissive] 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ^~~ answer.code:33:36: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) answer.code:33:45: error: ‘eturn’ was not declared in this scope; did you mean ‘extern’? 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ^~~~~ | extern answer.code:33:50: error: expected ‘;’ before ‘x’ 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ^~ | ; answer.code: In instantiation of ‘main()::<lambda(const auto:54&, const auto:55&)> [with auto:54 = std::__cxx11::basic_string<char>; auto:55 = std::__cxx11::basic_string<char>]’: /usr/include/c++/13/bits/predefined_ops.h:158:30: required from ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _Compare = main()::<lambda(const auto:54&, const auto:55&)>]’ /usr/include/c++/13/bits/stl_algo.h:1819:14: required from ‘constexpr void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:54&, const auto:55&)> >]’ /usr/include/c++/13/bits/stl_algo.h:1859:25: required from ‘constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:54&, const auto:55&)> >]’ /usr/include/c++/13/bits/stl_algo.h:1950:31: required from ‘constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:54&, const auto:55&)> >]’ /usr/include/c++/13/bits/stl_algo.h:4894:18: required from ‘constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<__cxx11::basic_string<char>*, vector<__cxx11::basic_string<char> > >; _Compare = main()::<lambda(const auto:54&, const auto:55&)>]’ answer.code:32:7: required from here answer.code:33:41: error: ‘str’ was not declared in this scope; did you mean ‘std’? 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ^ | std answer.code:33:35: error: ‘rlen’ was not declared in this scope; did you mean ‘strlen’? 33 | if (x.size() != y.size()) rlen(str(c)), eturn x.size() < y .size(); | ~~~~^~~~~~~~ | strlen