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_39801355_28831.cpp:300:15: error: 'HeapBase' is not a class template
  300 |         class HeapBase<Cap, Mapping, true> {
      |               ^~~~~~~~
0_0_39801355_28831.cpp:361:61: error: wrong number of template arguments (3, should be 2)
  361 |         using Heap = HeapBase<Cap, Mapping, Cap <= MASK_SIZE>;
      |                                                             ^
0_0_39801355_28831.cpp:300:42: note: provided for 'template<unsigned int Cap, class Mapping> class OY::BHeap::HeapBase'
  300 |         class HeapBase<Cap, Mapping, true> {
      |                                          ^
0_0_39801355_28831.cpp:365:26: error: 'Heap' does not name a type
  365 |             using type = Heap<Cap, Getter>;
      |                          ^~~~
0_0_39801355_28831.cpp:369:31: error: 'Heap' in namespace 'OY::BHeap' does not name a template type
  369 |     using BucketHeap = BHeap::Heap<Cap, Mapping>;
      |                               ^~~~
0_0_39801355_28831.cpp:371:49: error: 'type' in 'struct OY::BHeap::HeapWrap<2>' does not name a template type
  371 |     using Heap01 = BHeap::HeapWrap<2>::template type<Getter, Compare>;
      |                                                 ^~~~
0_0_39801355_28831.cpp: In function 'void solve_dijk()':
0_0_39801355_28831.cpp:546:73: error: 'type' is not a member of 'OY::BHeap::HeapWrap<10>'
  546 |         auto sol = G.calc<monoid, void, false, OY::BHeap::HeapWrap<10>::type>(0);
      |                                                                         ^~~~
0_0_39801355_28831.cpp:546:78: error: no matching function for call to 'OY::Dijkstra::Graph<unsigned int>::calc<monoid, void, false, <expression error> >(int)'
  546 |         auto sol = G.calc<monoid, void, false, OY::BHeap::HeapWrap<10>::type>(0);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
0_0_39801355_28831.cpp:520:53: note: candidate: 'template<class Group, class CountType, bool GetPath, template<class, class> class Heap> OY::Dijkstra::Solver<Group, CountType, GetPath, Heap> OY::Dijkstra::Graph<Tp>::calc(OY::Dijkstra::size_type, OY::Dijkstra::size_type) const [with CountType = Group; bool GetPath = CountType; Heap = GetPath; Tp = unsigned int]'
  520 |             Solver<Group, CountType, GetPath, Heap> calc(size_type source, size_type target = -1) const {
      |                                                     ^~~~
0_0_39801355_28831.cpp:520:53: note:   template argument deduction/substitution failed:
0_0_39801355_28831.cpp:546:78: error: template argument 4 is invalid
  546 |         auto sol = G.calc<monoid, void, false, OY::BHeap::HeapWrap<10>::type>(0);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 02:48:55, Gzip enabled