souvenirs.cpp: In function 'void buy_souvenirs(int, long long int)':
souvenirs.cpp:23:5: error: 'vector' was not declared in this scope
23 | vector<ll> cnt(N, 0), val(N);
| ^~~~~~
souvenirs.cpp:23:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from souvenirs.h:2,
from souvenirs.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from souvenirs.h:2,
from souvenirs.cpp:1:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:4:12: error: expected primary-expression before 'long'
4 | #define ll long long
| ^~~~
souvenirs.cpp:23:12: note: in expansion of macro 'll'
23 | vector<ll> cnt(N, 0), val(N);
| ^~
souvenirs.cpp:24:5: error: 'val' was not declared in this scope
24 | val[0] = P0;
| ^~~
souvenirs.cpp:27:26: error: 'cnt' was not declared in this scope; did you mean 'int'?
27 | for(int y: x.ff) cnt[y]++;
| ^~~
| int
souvenirs.cpp:31:36: error: 'cnt' was not declared in this scope; did you mean 'int'?
31 | for(int i = 1; i<N; ++i) while(cnt[i]<i) {transaction(val[i]); cnt[i]++;}
| ^~~
| int