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_23194234_13917.cpp:18:33: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
 priority_queue< Pair,vector<pair>,greater<pair> >q;
                                 ^
0_0_23194234_13917.cpp:18:33: error:   expected a type, got 'pair'
0_0_23194234_13917.cpp:18:33: error: template argument 2 is invalid
0_0_23194234_13917.cpp:18:47: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp> struct std::greater'
 priority_queue< Pair,vector<pair>,greater<pair> >q;
                                               ^
0_0_23194234_13917.cpp:18:47: error:   expected a type, got 'pair'
0_0_23194234_13917.cpp:18:49: error: template argument 2 is invalid
 priority_queue< Pair,vector<pair>,greater<pair> >q;
                                                 ^
0_0_23194234_13917.cpp:18:49: error: template argument 3 is invalid
0_0_23194234_13917.cpp:18:51: error: invalid type in declaration before ';' token
 priority_queue< Pair,vector<pair>,greater<pair> >q;
                                                   ^
0_0_23194234_13917.cpp: In function 'void make_up(int, int, int)':
0_0_23194234_13917.cpp:21:40: error: reference to 'end' is ambiguous
   a[++cnt].go=v;a[cnt].s=w;a[cnt].next=end[u];end[u]=cnt;
                                        ^
0_0_23194234_13917.cpp:16:23: note: candidates are: int end [1000005]
 int xx,yy,t,i,now,n,m,end[N],go;
                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
0_0_23194234_13917.cpp:21:47: error: reference to 'end' is ambiguous
   a[++cnt].go=v;a[cnt].s=w;a[cnt].next=end[u];end[u]=cnt;
                                               ^
0_0_23194234_13917.cpp:16:23: note: candidates are: int end [1000005]
 int xx,yy,t,i,now,n,m,end[N],go;
                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
0_0_23194234_13917.cpp: In function 'int main()':
0_0_23194234_13917.cpp:25:9: error: expected primary-expression before '%' token
   scanf(%d%d,&n,&m);
         ^
0_0_23194234_13917.cpp:25:10: error: 'd' was not declared in this scope
   scanf(%d%d,&n,&m);
          ^
0_0_23194234_13917.cpp:26:9: error: expected primary-expression before '%' token
   scanf(%d%I64d%I64d%I64d%I64d%I64d,&t,&rxa,&rxc,&rya,&ryc,&rp);
         ^
0_0_23194234_13917.cpp:26:12: error: 'I64d' was not declared in this scope
   scanf(%d%I64d%I64d%I64d%I64d%I64d,&t,&rxa,&rxc,&rya,&ryc,&rp);
            ^
0_0_23194234_13917.cpp:36:11: error: expected primary-expression before '%' token
     scanf(%d%d%d,&xx,&yy,&z);
           ^
0_0_23194234_13917.cpp:40:5: error: request for member 'push' in 'q', which is of non-class type 'int'
   q.push(pair<ll,int>(dis[1],1));
     ^
0_0_23194234_13917.cpp:41:13: error: request for member 'empty' in 'q', which is of non-class type 'int'
   while (!q.empty())
             ^
0_0_23194234_13917.cpp:43:17: error: request for member 'top' in 'q', which is of non-class type 'int'
     Pair temp=q.top();q.pop();
                 ^
0_0_23194234_13917.cpp:43:25: error: request for member 'pop' in 'q', which is of non-class type 'int'
     Pair temp=q.top();q.pop();
                         ^
0_0_23194234_13917.cpp:46:12: error: reference to 'end' is ambiguous
     for (i=end[now];i;i=a[i].next)
            ^
0_0_23194234_13917.cpp:16:23: note: candidates are: int end [1000005]
 int xx,yy,t,i,now,n,m,end[N],go;
                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_23194234_13917.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
0_0_23194234_13917.cpp:51:39: error: request for member 'push' in 'q', which is of non-class type 'int'
         dis[go]=dis[now]+ll(a[i].s);q.push(make_pair(dis[go],go));
                                       ^
0_0_23194234_13917.cpp:55:10: error: expected primary-expression before '%' token
   printf(%I64d,dis[n]);
          ^


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-05-19 01:24:57, Gzip enabled