Problem givinggifts
User PlayVoltz
Submission Time 2024-11-05 01:24:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

givinggifts.cpp: In function ‘int main()’:
givinggifts.cpp:10:29: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘class std::vector<int>’} has no member named ‘pb’
10 | while (k--)cin>>a, ans[a].pb(i);
| ^~