aliens.cpp: In function 'll take_photos(int, int, int, std::vector<int>, std::vector<int>)':
aliens.cpp:36:53: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
sort(B,B+N,[](_tuple a,_tuple b){return a.x>b.x;});
^
aliens.cpp:36:54: error: no matching function for call to 'sort(_tuple [100005], _tuple*, take_photos(int, int, int, std::vector<int>, std::vector<int>)::<lambda(_tuple, _tuple)>)'
sort(B,B+N,[](_tuple a,_tuple b){return a.x>b.x;});
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from aliens.cpp:2:
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
aliens.cpp:36:54: note: candidate expects 2 arguments, 3 provided
sort(B,B+N,[](_tuple a,_tuple b){return a.x>b.x;});
^
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
from aliens.cpp:2:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
aliens.cpp: In substitution of 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = _tuple*; _Compare = take_photos(int, int, int, std::vector<int>, std::vector<int>)::<lambda(_tuple, _tuple)>]':
aliens.cpp:36:54: required from here
aliens.cpp:36:54: error: template argument for 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)' uses local type 'take_photos(int, int, int, std::vector<int>, std::vector<int>)::<lambda(_tuple, _tuple)>'
sort(B,B+N,[](_tuple a,_tuple b){return a.x>b.x;});
^
aliens.cpp:36:54: error: trying to instantiate 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'