F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 12:02:52, Gzip enabled