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_39870166_2715.cpp: In function 'int main()':
0_0_39870166_2715.cpp:24:9: error: 'vector' was not declared in this scope
   24 |         vector<pair<string, int>> vec(strCntMap.begin(), strCntMap.end());
      |         ^~~~~~
0_0_39870166_2715.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    6 | #include<unordered_map>
  +++ |+#include <vector>
    7 | 
0_0_39870166_2715.cpp:24:32: error: expected primary-expression before '>' token
   24 |         vector<pair<string, int>> vec(strCntMap.begin(), strCntMap.end());
      |                                ^~
0_0_39870166_2715.cpp:24:35: error: 'vec' was not declared in this scope
   24 |         vector<pair<string, int>> vec(strCntMap.begin(), strCntMap.end());
      |                                   ^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 21:17:05, Gzip enabled