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_39446612_24459.cpp:25:1: error: 'vector' does not name a type
   25 | vector<E> g[N];
      | ^~~~~~
0_0_39446612_24459.cpp: In function 'void work()':
0_0_39446612_24459.cpp:42:30: error: 'vector' was not declared in this scope
   42 |         for(int i=1;i<=n;i++)vector<E>().swap(g[i]);
      |                              ^~~~~~~~~
0_0_39446612_24459.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    5 | #include<algorithm>
  +++ |+#include <vector>
    6 | using namespace std;
0_0_39446612_24459.cpp:42:47: error: 'g' was not declared in this scope
   42 |         for(int i=1;i<=n;i++)vector<E>().swap(g[i]);
      |                                               ^
0_0_39446612_24459.cpp:46:17: error: 'g' was not declared in this scope
   46 |                 g[u0].emplace_back(E(v0,c0));
      |                 ^
0_0_39446612_24459.cpp:48:35: error: 'g' was not declared in this scope
   48 |         for(int i=1;i<=n;i++)sort(g[i].begin(),g[i].end());
      |                                   ^
0_0_39446612_24459.cpp:50:38: error: 'g' was not declared in this scope
   50 |         for(int i=1;i<=n;i++)for(E e:g[i])ins(e);
      |                                      ^
0_0_39446612_24459.cpp:54:34: error: 'g' was not declared in this scope
   54 |                 for(int j=0;j<sz(g[p.v]);j++)if(!ins(E(g[p.v][j].v,p.c+g[p.v][j].c)))break;
      |                                  ^
0_0_39446612_24459.cpp:22:23: note: in definition of macro 'sz'
   22 | #define sz(vec) (int)(vec.size())
      |                       ^~~


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-28 17:16:15, Gzip enabled