QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#249545 | #2544. Flatland Currency | HuangHanSheng | Compile Error | / | / | C++11 | 2.3kb | 2023-11-12 11:54:27 | 2023-11-12 11:54:28 |
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:49:34: error: use of ‘auto’ in lambda parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’ 49 | sort(v.begin(), v.end(), [&](auto i,auto j){ | ^~~~ answer.code:49:41: error: use of ‘auto’ in lambda parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’ 49 | sort(v.begin(), v.end(), [&](auto i,auto j){ | ^~~~ answer.code: In lambda function: answer.code:50:14: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’ 50 | if(i.first + j.second != i.second * j.first){ | ^~~~~ answer.code:50:24: error: request for member ‘second’ in ‘j’, which is of non-class type ‘int’ 50 | if(i.first + j.second != i.second * j.first){ | ^~~~~~ answer.code:50:36: error: request for member ‘second’ in ‘i’, which is of non-class type ‘int’ 50 | if(i.first + j.second != i.second * j.first){ | ^~~~~~ answer.code:50:47: error: request for member ‘first’ in ‘j’, which is of non-class type ‘int’ 50 | if(i.first + j.second != i.second * j.first){ | ^~~~~ answer.code:51:22: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’ 51 | return i.first * j.second < i.second * j.first; | ^~~~~ answer.code:51:32: error: request for member ‘second’ in ‘j’, which is of non-class type ‘int’ 51 | return i.first * j.second < i.second * j.first; | ^~~~~~ answer.code:51:43: error: request for member ‘second’ in ‘i’, which is of non-class type ‘int’ 51 | return i.first * j.second < i.second * j.first; | ^~~~~~ answer.code:51:54: error: request for member ‘first’ in ‘j’, which is of non-class type ‘int’ 51 | return i.first * j.second < i.second * j.first; | ^~~~~ answer.code:54:22: error: request for member ‘first’ in ‘i’, which is of non-class type ‘int’ 54 | return i.first < j.first; | ^~~~~ answer.code:54:32: error: request for member ‘first’ in ‘j’, which is of non-class type ‘int’ 54 | return i.first < j.first; | ^~~~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:71, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from answer.code:2: /usr/include/c++/11/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Compare = main()::<lambda(int, int)>]’: /usr/include/c++/11/bits/stl_algo.h:1826:14: required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(int, int)> >]’ /usr/include/c++/11/bits/stl_algo.h:1866:25: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(int, int)> >]’ /usr/include/c++/11/bits/stl_algo.h:1957:31: required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(int, int)> >]’ /usr/include/c++/11/bits/stl_algo.h:4875:18: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::pair<long long int, long long int>*, std::vector<std::pair<long long int, long long int> > >; _Compare = main()::<lambda(int, int)>]’ answer.code:49:9: required from here /usr/include/c++/11/bits/predefined_ops.h:158:30: error: no match for call to ‘(main()::<lambda(int, int)>) (std::pair<long long int, long long int>&, std::pair<long long int, long long i...