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_36693995_2397.cpp:29:2: error: 'vector' does not name a type
  vector<Node>mp[MAXN];
  ^
0_0_36693995_2397.cpp: In function 'void SPFA(int, int)':
0_0_36693995_2397.cpp:39:6: error: 'queue' was not declared in this scope
      queue<int>Q;
      ^
0_0_36693995_2397.cpp:39:6: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_36693995_2397.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_36693995_2397.cpp:39:12: error: expected primary-expression before 'int'
      queue<int>Q;
            ^
0_0_36693995_2397.cpp:40:6: error: 'Q' was not declared in this scope
      Q.push(u);
      ^
0_0_36693995_2397.cpp:45:24: error: 'mp' was not declared in this scope
          for(int i=0;i<mp[u].size();i++){
                        ^
0_0_36693995_2397.cpp: In function 'int main()':
0_0_36693995_2397.cpp:67:31: error: 'mp' was not declared in this scope
          for(int i=1;i<=n;i++)mp[i].clear();
                               ^
0_0_36693995_2397.cpp:76:14: error: 'mp' was not declared in this scope
              mp[u].push_back(p2);
              ^


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-23 00:16:11, Gzip enabled