Problem photo
User Vinayak01
Submission Time 2024-03-15 09:51:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘bool comparevec(std::vector<std::tuple<int, int, int> >, std::vector<std::tuple<int, int, int> >)’:
photo.cpp:5:20: error: no matching function for call to ‘get<0>(std::vector<std::tuple<int, int, int> >&)’
5 | return get<0>(a) > get<0>(b);
| ^
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from photo.cpp:1:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
photo.cpp:5:20: note: ‘std::vec