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_38674552_26658.cpp:43:1: error: 'vector' does not name a type
   43 | vector<int> get_path(int S,int T)
      | ^~~~~~
0_0_38674552_26658.cpp: In function 'int main()':
0_0_38674552_26658.cpp:130:25: error: 'vector' was not declared in this scope
  130 |                         vector<int> path1,path2;
      |                         ^~~~~~
0_0_38674552_26658.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    6 | #include <map>
  +++ |+#include <vector>
    7 | using namespace std;
0_0_38674552_26658.cpp:130:32: error: expected primary-expression before 'int'
  130 |                         vector<int> path1,path2;
      |                                ^~~
0_0_38674552_26658.cpp:132:25: error: 'path1' was not declared in this scope
  132 |                         path1=get_path(Sa,Ta);
      |                         ^~~~~
0_0_38674552_26658.cpp:132:31: error: 'get_path' was not declared in this scope
  132 |                         path1=get_path(Sa,Ta);
      |                               ^~~~~~~~
0_0_38674552_26658.cpp:133:25: error: 'path2' was not declared in this scope
  133 |                         path2=get_path(Sb,Tb);
      |                         ^~~~~


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-10-06 14:19:49, Gzip enabled