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_27966109_16843.cpp:31:27: error: 'EDGE' does not name a type
     bool operator <(const EDGE &k)const
                           ^
0_0_27966109_16843.cpp:24:8: error: field 'long long int EDGE::EDGE' with same name as class [-fpermissive]
     ll EDGE;
        ^
0_0_27966109_16843.cpp: In member function 'bool EDGE::operator<(const int&) const':
0_0_27966109_16843.cpp:33:23: error: request for member 'EDGE' in 'k', which is of non-class type 'const int'
         return EDGE>k.EDGE;
                       ^
0_0_27966109_16843.cpp: In function 'void dijkstra(long long int)':
0_0_27966109_16843.cpp:48:24: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
     priority_queue<EDGE>q;
                        ^
0_0_27966109_16843.cpp:48:24: error:   expected a type, got 'EDGE'
0_0_27966109_16843.cpp:48:24: error: template argument 2 is invalid
0_0_27966109_16843.cpp:48:24: error: template argument 3 is invalid
0_0_27966109_16843.cpp:48:26: error: invalid type in declaration before ';' token
     priority_queue<EDGE>q;
                          ^
0_0_27966109_16843.cpp:49:7: error: request for member 'push' in 'q', which is of non-class type 'int'
     q.push(EDGE(s,EDGE[s]));
       ^
0_0_27966109_16843.cpp:49:26: error: 'EDGE' cannot be used as a function
     q.push(EDGE(s,EDGE[s]));
                          ^
0_0_27966109_16843.cpp:50:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
     while(!q.empty())
              ^
0_0_27966109_16843.cpp:52:14: error: expected ';' before 'top'
         EDGE top=q.top();
              ^
0_0_27966109_16843.cpp:53:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
         q.pop();
           ^
0_0_27966109_16843.cpp:54:16: error: 'top' was not declared in this scope
         if(vis[top.to])continue;
                ^
0_0_27966109_16843.cpp:55:13: error: 'top' was not declared in this scope
         vis[top.to]=true;
             ^
0_0_27966109_16843.cpp:63:19: error: request for member 'push' in 'q', which is of non-class type 'int'
                 q.push(EDGE(tmp.to,EDGE[tmp.to]));
                   ^
0_0_27966109_16843.cpp:63:48: error: 'EDGE' cannot be used as a function
                 q.push(EDGE(tmp.to,EDGE[tmp.to]));
                                                ^


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-29 16:37:57, Gzip enabled