运行 ID: 26985

Main.cc: In function ‘u64 barret(u64)’:
Main.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:21:29: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
  sort(a.begin(),a.end(),[&](auto X,auto Y){
                             ^~~~
Main.cc:21:36: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
  sort(a.begin(),a.end(),[&](auto X,auto Y){
                                    ^~~~
Main.cc: In lambda function:
Main.cc:22:30: error: no match for ‘operator=’ (operand types are ‘std::tuple’ and ‘int’)
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                              ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1209:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_T1, _T2>&) [with _T1 = int&; _T2 = int&]
       operator=(const tuple& __in)
       ^~~~~~~~
/usr/include/c++/7/tuple:1209:7: note:   no known conversion for argument 1 from ‘int’ to ‘const std::tuple&’
/usr/include/c++/7/tuple:1216:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_T1, _T2>&&) [with _T1 = int&; _T2 = int&]
       operator=(tuple&& __in)
       ^~~~~~~~
/usr/include/c++/7/tuple:1216:7: note:   no known conversion for argument 1 from ‘int’ to ‘std::tuple&&’
/usr/include/c++/7/tuple:1225:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(const tuple<_U1, _U2>& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1225:9: note:   template argument deduction/substitution failed:
Main.cc:22:30: note:   mismatched types ‘const std::tuple<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                              ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1233:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(tuple<_U1, _U2>&& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1233:9: note:   template argument deduction/substitution failed:
Main.cc:22:30: note:   mismatched types ‘std::tuple<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                              ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1241:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(const pair<_U1, _U2>& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1241:9: note:   template argument deduction/substitution failed:
Main.cc:22:30: note:   mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                              ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1250:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(pair<_U1, _U2>&& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1250:9: note:   template argument deduction/substitution failed:
Main.cc:22:30: note:   mismatched types ‘std::pair<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                              ^
Main.cc:22:43: error: no match for ‘operator=’ (operand types are ‘std::tuple’ and ‘int’)
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                                           ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1209:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_T1, _T2>&) [with _T1 = int&; _T2 = int&]
       operator=(const tuple& __in)
       ^~~~~~~~
/usr/include/c++/7/tuple:1209:7: note:   no known conversion for argument 1 from ‘int’ to ‘const std::tuple&’
/usr/include/c++/7/tuple:1216:7: note: candidate: std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_T1, _T2>&&) [with _T1 = int&; _T2 = int&]
       operator=(tuple&& __in)
       ^~~~~~~~
/usr/include/c++/7/tuple:1216:7: note:   no known conversion for argument 1 from ‘int’ to ‘std::tuple&&’
/usr/include/c++/7/tuple:1225:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::tuple<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(const tuple<_U1, _U2>& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1225:9: note:   template argument deduction/substitution failed:
Main.cc:22:43: note:   mismatched types ‘const std::tuple<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                                           ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1233:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::tuple<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(tuple<_U1, _U2>&& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1233:9: note:   template argument deduction/substitution failed:
Main.cc:22:43: note:   mismatched types ‘std::tuple<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                                           ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1241:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(const pair<_U1, _U2>& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1241:9: note:   template argument deduction/substitution failed:
Main.cc:22:43: note:   mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                                           ^
In file included from /usr/include/c++/7/functional:54:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
                 from Main.cc:1:
/usr/include/c++/7/tuple:1250:9: note: candidate: template std::tuple<_T1, _T2>& std::tuple<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int&; _T2 = int&]
         operator=(pair<_U1, _U2>&& __in)
         ^~~~~~~~
/usr/include/c++/7/tuple:1250:9: note:   template argument deduction/substitution failed:
Main.cc:22:43: note:   mismatched types ‘std::pair<_T1, _T2>’ and ‘int’
   int ax,ay,bx,by;tie(ax,ay)=X,tie(bx,by)=Y;
                                           ^
Main.cc: In function ‘int main()’:
Main.cc:37:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator*, std::vector > >; _Iterator2 = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = main()::]’:
/usr/include/c++/7/bits/stl_algo.h:1847:14:   required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1885:25:   required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1971:31:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:4868:18:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = main()::]’
Main.cc:25:3:   required from here
/usr/include/c++/7/bits/predefined_ops.h:143:18: error: no match for call to ‘(main()::) (std::pair&, std::pair&)’
         { return bool(_M_comp(*__it1, *__it2)); }
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:21:42: note: candidate: main()::
  sort(a.begin(),a.end(),[&](auto X,auto Y){
                                          ^
Main.cc:21:42: note:   no known conversion for argument 1 from ‘std::pair’ to ‘int’
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = std::pair; _Iterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = main()::]’:
/usr/include/c++/7/bits/stl_algo.h:1828:20:   required from ‘void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Val_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1855:36:   required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1885:25:   required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1971:31:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:4868:18:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = main()::]’
Main.cc:25:3:   required from here
/usr/include/c++/7/bits/predefined_ops.h:215:11: error: no match for call to ‘(main()::) (std::pair&, std::pair&)’
  { return bool(_M_comp(__val, *__it)); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:21:42: note: candidate: main()::
  sort(a.begin(),a.end(),[&](auto X,auto Y){
                                          ^
Main.cc:21:42: note:   no known conversion for argument 1 from ‘std::pair’ to ‘int’
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/7/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Value = std::pair; _Compare = main()::]’:
/usr/include/c++/7/bits/stl_heap.h:133:48:   required from ‘void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = long int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >]’
/usr/include/c++/7/bits/stl_heap.h:237:23:   required from ‘void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = long int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_heap.h:342:22:   required from ‘void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1672:23:   required from ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1933:25:   required from ‘void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1948:27:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:1968:25:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]’
/usr/include/c++/7/bits/stl_algo.h:4868:18:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = main()::]’
Main.cc:25:3:   required from here
/usr/include/c++/7/bits/predefined_ops.h:177:11: error: no match for call to ‘(main()::) (std::pair&, std::pair&)’
  { return bool(_M_comp(*__it, __val)); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:21:42: note: candidate: main()::
  sort(a.begin(),a.end(),[&](auto X,auto Y){
                                          ^
Main.cc:21:42: note:   no known conversion for argument 1 from ‘std::pair’ to ‘int’