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_31983408_15196.cpp:17:2: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
  > Q;
  ^
0_0_31983408_15196.cpp:17:2: error:   expected a type, got 'vector'
0_0_31983408_15196.cpp:17:2: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
0_0_31983408_15196.cpp:17:2: error:   expected a type, got 'greater'
0_0_31983408_15196.cpp:17:5: error: invalid type in declaration before ';' token
  > Q;
     ^
0_0_31983408_15196.cpp:20:2: error: invalid use of template-name 'std::vector' without an argument list
  vector
  ^
0_0_31983408_15196.cpp: In function 'void gao(int)':
0_0_31983408_15196.cpp:29:8: error: request for member 'push' in 'Q', which is of non-class type 'int'
      Q.push(mp(0,x));
        ^
0_0_31983408_15196.cpp:30:16: error: request for member 'empty' in 'Q', which is of non-class type 'int'
      while (!Q.empty())
                ^
0_0_31983408_15196.cpp:32:18: error: request for member 'top' in 'Q', which is of non-class type 'int'
          P tmp=Q.top();
                  ^
0_0_31983408_15196.cpp:33:12: error: request for member 'pop' in 'Q', which is of non-class type 'int'
          Q.pop();
            ^
0_0_31983408_15196.cpp:36:21: error: 'e' was not declared in this scope
          for (i=0;i<e[x].size();i++)
                     ^
0_0_31983408_15196.cpp:41:16: error: request for member 'push' in 'Q', which is of non-class type 'int'
              Q.push(mp(dis[e[x][i].fi],e[x][i].fi));
                ^
0_0_31983408_15196.cpp: In function 'int main()':
0_0_31983408_15196.cpp:96:25: error: 'e' was not declared in this scope
      for (i=1;i<=n;i++) e[i].clear();
                         ^
0_0_31983408_15196.cpp:101:10: error: 'e' was not declared in this scope
          e[a].pb(mp(b,c));
          ^
0_0_31983408_15196.cpp:145:24: error: 'e' was not declared in this scope
         for (int k=0;k<e[i].size();k++)
                        ^


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-26 17:15:34, Gzip enabled