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_34501386_31383.cpp:18:1: error: 'vector' does not name a type
 vector<int> g[MN];
 ^
0_0_34501386_31383.cpp: In function 'void add(int, int)':
0_0_34501386_31383.cpp:21:2: error: 'g' was not declared in this scope
  g[u].ep(v);
  ^
0_0_34501386_31383.cpp: In function 'int dij(int, int)':
0_0_34501386_31383.cpp:27:38: error: 'memset' was not declared in this scope
  memset(vis, 0, sizeof(int) * (T + 1));
                                      ^
0_0_34501386_31383.cpp:30:2: error: '__gnu_pbds' has not been declared
  __gnu_pbds::priority_queue<pair<int, int> , greater<pair<int, int> > > q;
  ^
0_0_34501386_31383.cpp:30:29: error: 'pair' was not declared in this scope
  __gnu_pbds::priority_queue<pair<int, int> , greater<pair<int, int> > > q;
                             ^
0_0_34501386_31383.cpp:30:34: error: expected primary-expression before 'int'
  __gnu_pbds::priority_queue<pair<int, int> , greater<pair<int, int> > > q;
                                  ^
0_0_34501386_31383.cpp:31:2: error: 'q' was not declared in this scope
  q.push(mkp(0, s));
  ^
0_0_34501386_31383.cpp:31:17: error: 'make_pair' was not declared in this scope
  q.push(mkp(0, s));
                 ^
0_0_34501386_31383.cpp:33:8: error: expected primary-expression before 'int'
   pair<int, int> t = q.top(); q.pop();
        ^
0_0_34501386_31383.cpp:35:11: error: 't' was not declared in this scope
   if (vis[t.S]) continue;
           ^
0_0_34501386_31383.cpp:36:7: error: 't' was not declared in this scope
   vis[t.S] = true;
       ^
0_0_34501386_31383.cpp:37:11: error: 'g' was not declared in this scope
   rap (i, g[t.S]) if (!vis[i] and dis[i] > dis[t.S] -
           ^
0_0_34501386_31383.cpp:15:31: note: in definition of macro 'rap'
 #define rap(i, x) for(auto& i:x)
                               ^
0_0_34501386_31383.cpp:44:14: error: 'assert' was not declared in this scope
  assert(false);
              ^
0_0_34501386_31383.cpp: In function 'int main()':
0_0_34501386_31383.cpp:49:23: error: 'scanf' was not declared in this scope
  int T; scanf("%d", &T);
                       ^
0_0_34501386_31383.cpp:54:3: error: 'g' was not declared in this scope
   g[S].clear(); g[T].clear();
   ^
0_0_34501386_31383.cpp:76:27: error: 'printf' was not declared in this scope
   printf("%d\n", dij(S, T));
                           ^


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-02 10:08:23, Gzip enabled