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_25005114_4398.cpp: In function 'int main()':
0_0_25005114_4398.cpp:44:54: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
      int posr = upper_bound(G[i].begin(),G[i].end(),r);
                                                      ^
0_0_25005114_4398.cpp:45:54: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
      int posl = lower_bound(G[i].begin(),G[i].end(),l)
                                                      ^
0_0_25005114_4398.cpp:46:6: error: expected ',' or ';' before 'int'
      int pos = posr - posl;
      ^
0_0_25005114_4398.cpp:47:9: error: 'pos' was not declared in this scope
      if(pos<cnt){
         ^
0_0_25005114_4398.cpp:53:53: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
     int posr = upper_bound(G[p].begin(),G[p].end(),r);
                                                     ^
0_0_25005114_4398.cpp:54:53: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
     int posl = lower_bound(G[p].begin(),G[p].end(),l)
                                                     ^
0_0_25005114_4398.cpp:55:5: error: expected ',' or ';' before 'int'
     int pos = posr - posl;
     ^
0_0_25005114_4398.cpp:56:9: error: 'pos' was not declared in this scope
     if(!pos){
         ^


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-12-03 17:15:23, Gzip enabled