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_38575422_952.cpp:13:1: error: 'vector' does not name a type; did you mean 'perror'?
 vector<P>block;
 ^~~~~~
 perror
0_0_38575422_952.cpp: In function 'int find(int)':
0_0_38575422_952.cpp:72:12: error: 'block' was not declared in this scope
  int l=0,r=block.size()-1;
            ^~~~~
0_0_38575422_952.cpp: In function 'void init(int)':
0_0_38575422_952.cpp:84:2: error: 'block' was not declared in this scope
  block.clear();
  ^~~~~
0_0_38575422_952.cpp: In function 'int main()':
0_0_38575422_952.cpp:105:6: error: 'block' was not declared in this scope
      block.insert(upper_bound(block.begin(),block.end(),P(start,start+len-1)),P(start,start+len-1));//很重要的操作
      ^~~~~
0_0_38575422_952.cpp:116:36: error: 'block' was not declared in this scope
      printf("Free from %d to %d\n",block[pos].first,block[pos].second);
                                    ^~~~~
0_0_38575422_952.cpp:125:11: error: 'block' was not declared in this scope
        if(block.size()<pos)puts("Reject Get");
           ^~~~~
0_0_38575422_952.cpp:132:5: error: 'block' was not declared in this scope
     block.clear();
     ^~~~~


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-28 20:08:16, Gzip enabled