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_38780075_23860.cpp:7:1: error: missing template argument list after 'std::vector'; for deduction, template placeholder must be followed by a simple declarator-id
    7 | vector v[N];
      | ^~~~~~
      |       <>
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:66,
                 from 0_0_38780075_23860.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note: 'template<class _Tp, class _Alloc> class std::vector' declared here
  423 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
0_0_38780075_23860.cpp: In function 'bool Dfs(int)':
0_0_38780075_23860.cpp:9:19: error: 'v' was not declared in this scope
    9 |     for(int i=0;i<v[k].size();i++){
      |                   ^
0_0_38780075_23860.cpp: In function 'int main()':
0_0_38780075_23860.cpp:22:27: error: 'v' was not declared in this scope
   22 |         for(i=0;i<n+m;i++)v[i].clear();
      |                           ^
0_0_38780075_23860.cpp:26:17: error: 'v' was not declared in this scope
   26 |                 v[a].push_back(b+n);
      |                 ^


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-12-01 09:12:07, Gzip enabled