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:19: error: 'query' was not declared in this scope; did you mean 'qry'?
18 | auto [V, R] = query(val);
| ^~~~~
| qry
souvenirs.cpp: In function 'void buy_souvenirs(int, long long int)':
souvenirs.cpp:39:13: error: 'query' was not declared in this scope; did you mean 'qry'?
39 | query(P[i]);
| ^~~~~
| qry