souvenirs.cpp:11:22: error: wrong number of template arguments (1, should be 2)
11 | pair<vector<int, ll> > qry(ll val){
| ^
In file included from /usr/include/c++/13/utility:69,
from souvenirs.h:1,
from souvenirs.cpp:1:
/usr/include/c++/13/bits/stl_pair.h:187:12: note: provided for 'template<class _T1, class _T2> struct std::pair'
187 | struct pair
| ^~~~
souvenirs.cpp: In function 'int qry(long long int)':
souvenirs.cpp:14:12: error: cannot convert 'std::pair<std::vector<int>, long long int>' to 'int' in return
14 | return res;
| ^~~
| |
| std::pair<std::vector<int>, long long int>
souvenirs.cpp: In function 'int dfs(long long int, int)':
souvenirs.cpp:18:10: error: cannot decompose non-array non-class type 'int'
18 | auto [V, R] = qry(val);
| ^~~~~~