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_39690074_10330.cpp: In function 'int main()':
0_0_39690074_10330.cpp:34:9: error: 'vector' was not declared in this scope
   34 |         vector<pair<int, int>> s;
      |         ^~~~~~
0_0_39690074_10330.cpp:8:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    7 | #include <array>
  +++ |+#include <vector>
    8 | using namespace std;
0_0_39690074_10330.cpp:34:29: error: expected primary-expression before '>' token
   34 |         vector<pair<int, int>> s;
      |                             ^~
0_0_39690074_10330.cpp:34:32: error: 's' was not declared in this scope
   34 |         vector<pair<int, int>> s;
      |                                ^
0_0_39690074_10330.cpp:49:16: error: expected primary-expression before 'int'
   49 |         vector<int> rec(q + 10, 0);
      |                ^~~
0_0_39690074_10330.cpp:54:13: error: 'rec' was not declared in this scope
   54 |             rec[a.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-26 12:27:11, Gzip enabled