festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:22:25: error: no match for 'operator[]' (operand types are 'std::vector<std::vector<std::pair<int, int> > >' and 'std::vector<int>')
22 | if(idx[i]==v[idx].size())continue;
| ^
In file included from /usr/include/c++/13/vector:66,
from /usr/include/c++/13/functional:64,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53,
from festival.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:1126:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::vector<std::pair<int, int> >; _Alloc = std::allocator<std::vector<std::pair<int, int> > >; reference = std::vector<std::pair<int, int> >&; size_type = long unsigned int]'
1126 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1126:28: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'}
1126 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_vector.h:1145:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = std::vector<std::pair<int, int> >; _Alloc = std::allocator<std::vector<std::pair<int, int> > >; const_reference = const std::vector<std::pair<int, int> >&; size_type = long unsigned int]'
1145 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:1145:28: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'}
1145 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
festival.cpp:5:12: error: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<std::pair<int, int> > >, std::vector<std::pair<int, int> > >::value_type' {aka 'class std::vector<std::pair<int, int> >'} has no member named 'second'
5 | #define ss second
| ^~~~~~
festival.cpp:26:34: note: in expansion of macro 'ss'
26 | ans.pb(v[idx[i]].ss);
| ^~