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_38355957_29233.cpp: In function 'void solve()':
0_0_38355957_29233.cpp:23:12: error: missing template arguments before 'e'
     vector e(M << 2, vector<pii>());
            ^
0_0_38355957_29233.cpp:52:13: error: 'e' was not declared in this scope
             e[u].pb({v, w});
             ^
0_0_38355957_29233.cpp:57:12: error: missing template arguments before 'dp'
     vector dp(M << 2, vector<ll>(k + 1, INF)); 
            ^
0_0_38355957_29233.cpp:58:12: error: missing template arguments before 'v'
     vector v(M << 2, vector<bool>(k + 1, 0));
            ^
0_0_38355957_29233.cpp:62:5: error: 'dp' was not declared in this scope
     dp[M][0] = 0;
     ^
0_0_38355957_29233.cpp:67:14: error: expected unqualified-id before '[' token
         auto [dist, g, cnt] = dij.top();        
              ^
0_0_38355957_29233.cpp:70:13: error: 'v' was not declared in this scope
         if (v[g][cnt]) continue;
             ^
0_0_38355957_29233.cpp:70:15: error: 'g' was not declared in this scope
         if (v[g][cnt]) continue;
               ^
0_0_38355957_29233.cpp:70:18: error: 'cnt' was not declared in this scope
         if (v[g][cnt]) continue;
                  ^
0_0_38355957_29233.cpp:71:9: error: 'v' was not declared in this scope
         v[g][cnt] = true;
         ^
0_0_38355957_29233.cpp:71:11: error: 'g' was not declared in this scope
         v[g][cnt] = true;
           ^
0_0_38355957_29233.cpp:71:14: error: 'cnt' was not declared in this scope
         v[g][cnt] = true;
              ^
0_0_38355957_29233.cpp:73:28: error: 'dist' was not declared in this scope
             ans = min(ans, dist);
                            ^
0_0_38355957_29233.cpp:81:47: error: 'dist' was not declared in this scope
             if (!v[nx][cnt] and dp[nx][cnt] > dist) {
                                               ^
0_0_38355957_29233.cpp:83:41: error: no matching function for call to 'std::priority_queue<std::array<long long int, 3ull>, std::vector<std::array<long long int, 3ull> >, std::greater<std::array<long long int, 3ull> > >::push(<brace-enclosed initializer list>)'
                 dij.push({dist, nx, cnt});
                                         ^
0_0_38355957_29233.cpp:83:41: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_38355957_29233.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::array<long long int, 3ull>; _Sequence = std::vector<std::array<long long int, 3ull> >; _Compare = std::greater<std::array<long long int, 3ull> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::array<long long int, 3ull>]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::array<long long int, 3ull>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::array<long long int, 3ull>; _Sequence = std::vector<std::array<long long int, 3ull> >; _Compare = std::greater<std::array<long long int, 3ull> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::array<long long int, 3ull>]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::array<long long int, 3ull>, std::vector<std::array<long long int, 3ull> >, std::greater<std::array<long long int, 3ull> > >::value_type&& {aka std::array<long long int, 3ull>&&}'
0_0_38355957_29233.cpp:88:51: error: 'dist' was not declared in this scope
                 if (!v[nx][cnt] and dp[nx][cnt] > dist) {
                                                   ^
0_0_38355957_29233.cpp:90:45: error: no matching function for call to 'std::priority_queue<std::array<long long int, 3ull>, std::vector<std::array<long long int, 3ull> >, std::greater<std::array<long long int, 3ull> > >::push(<brace-enclosed initializer list>)'
                     dij.push({dist, nx, cnt});
                                             ^
0_0_38355957_29233.cpp:90:45: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_38355957_29233.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::array<long long int, 3ull>; _Sequence = std::vector<std::array<long long int, 3ull> >; _Compare = std::greater<std::array<long long int, 3ull> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::array<long long int, 3ull>]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::array<long long int, 3ull>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::array<long long int, 3ull>; _Sequence = std::vector<std::array<long long int, 3ull> >; _Compare = std::greater<std::array<long long int, 3ull> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::array<long long int, 3ull>]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::array<long long int, 3ull>, std::vector<std::array<long long int, 3ull> >, std::greater<std::array<long long int, 3ull> > >::value_type&& {aka std::array<long long int, 3ull>&&}'
0_0_38355957_29233.cpp:95:19: error: expected unqualified-id before '[' token
         for (auto [u, add] : e[g]) {
                   ^
0_0_38355957_29233.cpp:95:19: error: expected ';' before '[' token
0_0_38355957_29233.cpp:95:20: error: 'u' was not declared in this scope
         for (auto [u, add] : e[g]) {
                    ^
0_0_38355957_29233.cpp:95:23: error: 'add' was not declared in this scope
         for (auto [u, add] : e[g]) {
                       ^
0_0_38355957_29233.cpp: In lambda function:
0_0_38355957_29233.cpp:95:28: error: expected '{' before ':' token
         for (auto [u, add] : e[g]) {
                            ^
0_0_38355957_29233.cpp: In function 'void solve()':
0_0_38355957_29233.cpp:95:28: error: expected ';' before ':' token
0_0_38355957_29233.cpp:95:28: error: expected primary-expression before ':' token
0_0_38355957_29233.cpp:95:28: error: expected ')' before ':' token
0_0_38355957_29233.cpp:95:28: error: expected primary-expression before ':' token


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-07-03 08:01:54, Gzip enabled