0_0_36888513_1675.cpp: In function 'int main()':
0_0_36888513_1675.cpp:77:18: error: request for member 'begin' in 'k', which is of pointer type 'std::vector<std::pair<long long int, int> >*' (maybe you meant to use '->' ?)
if(k.begin().first>x)
^
0_0_36888513_1675.cpp:82:35: error: request for member 'begin' in 'k', which is of pointer type 'std::vector<std::pair<long long int, int> >*' (maybe you meant to use '->' ?)
int l = upper_bound(k.begin(), k.end(), make_pair(x, 0)) - k.begin() - 1;
^
0_0_36888513_1675.cpp:82:46: error: request for member 'end' in 'k', which is of pointer type 'std::vector<std::pair<long long int, int> >*' (maybe you meant to use '->' ?)
int l = upper_bound(k.begin(), k.end(), make_pair(x, 0)) - k.begin() - 1;
^
0_0_36888513_1675.cpp:82:74: error: request for member 'begin' in 'k', which is of pointer type 'std::vector<std::pair<long long int, int> >*' (maybe you meant to use '->' ?)
int l = upper_bound(k.begin(), k.end(), make_pair(x, 0)) - k.begin() - 1;
^
0_0_36888513_1675.cpp:83:48: error: 'class std::vector<std::pair<long long int, int> >' has no member named 'second'
printf("%lld\n", n * (x - sum[k[l].second]) / s + k[l].second);
^
0_0_36888513_1675.cpp:83:68: error: 'class std::vector<std::pair<long long int, int> >' has no member named 'second'
printf("%lld\n", n * (x - sum[k[l].second]) / s + k[l].second);
^
|