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_39398615_12453.cpp:11:1: error: 'vector' does not name a type
   11 | vector<PII> ps;
      | ^~~~~~
0_0_39398615_12453.cpp: In function 'double merge(int, int)':
0_0_39398615_12453.cpp:25:5: error: 'vector' was not declared in this scope
   25 |     vector<PII> vec;
      |     ^~~~~~
0_0_39398615_12453.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <cmath>
  +++ |+#include <vector>
    5 | 
0_0_39398615_12453.cpp:25:15: error: expected primary-expression before '>' token
   25 |     vector<PII> vec;
      |               ^
0_0_39398615_12453.cpp:25:17: error: 'vec' was not declared in this scope
   25 |     vector<PII> vec;
      |                 ^~~
0_0_39398615_12453.cpp:27:17: error: 'ps' was not declared in this scope
   27 |         if(fabs(ps[mid].first - ps[i].first) <= d) {
      |                 ^~
0_0_39398615_12453.cpp: In function 'int main()':
0_0_39398615_12453.cpp:45:9: error: 'ps' was not declared in this scope
   45 |         ps.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-11 06:24:01, Gzip enabled