Problem buyingcandy
User Hijackedsoul
Submission Time 2023-12-09 11:24:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:13:21: error: request for member ‘first’ in ‘ds.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
13 | std::cin >> ds[i].first >> ds[i].second;
| ^~~~~
buyingcandy.cpp:13:36: error: request for member ‘second’ in ‘ds.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
13 | std::cin >> ds[i].first >> ds[i].second;
| ^~~~~~
buyingcandy.cpp:17:17: error: ‘illpq’ was not declared in this scope; did you mean ‘killpg’?
17 | prio