Submission #71974


ソースコード

ステータス

項目 データ
問題 1543 - 蜘蛛の巣上の最短経路探索
ユーザー名 syoribu
投稿日時 2022-08-30 09:25:50
言語 C++17
状態 Compile Error
得点 0
ソースコード長 1835 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:20:72: error: class template argument deduction failed:
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
./Main.cpp:20:72: error: no matching function for call to ‘priority_queue(std::greater<void>, std::vector<std::pair<long double, std::tuple<long long int, long long int, long long int> > >)’
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:552:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _InputIterator> priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(_InputIterator __first, _InputIterator __last,
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:552:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   deduced conflicting types for parameter ‘_InputIterator’ (‘std::greater<void>’ and ‘std::vector<std::pair<long double, std::tuple<long long int, long long int, long long int> > >’)
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:541:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _InputIterator> priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Sequence&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(_InputIterator __first, _InputIterator __last,
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:541:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   deduced conflicting types for parameter ‘_InputIterator’ (‘std::greater<void>’ and ‘std::vector<std::pair<long double, std::tuple<long long int, long long int, long long int> > >’)
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:509:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(std::priority_queue<_Tp, _Sequence, _Compare>&&, const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(priority_queue&& __q, const _Alloc& __a)
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:509:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   ‘std::greater<void>’ is not derived from ‘std::priority_queue<_Tp, _Sequence, _Compare>’
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:505:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(const std::priority_queue<_Tp, _Sequence, _Compare>&, const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(const priority_queue& __q, const _Alloc& __a)
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:505:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   ‘std::greater<void>’ is not derived from ‘const std::priority_queue<_Tp, _Sequence, _Compare>’
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:501:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(const _Compare&, _Sequence&&, const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(const _Compare& __x, _Sequence&& __c, const _Alloc& __a)
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:501:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   candidate expects 3 arguments, 2 provided
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:496:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(const _Compare&, const _Sequence&, const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(const _Compare& __x, const _Sequence& __c,
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:496:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   candidate expects 3 arguments, 2 provided
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:492:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(const _Compare&, const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(const _Compare& __x, const _Alloc& __a)
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:492:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   couldn't deduce template parameter ‘_Tp’
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:488:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Alloc, class _Requires> priority_queue(const _Alloc&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue(const _Alloc& __a)
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:488:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   candidate expects 1 argument, 2 provided
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:482:7: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare> priority_queue(const _Compare&, _Sequence&&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
       priority_queue(const _Compare& __x, _Sequence&& __s = _Sequence())
       ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:482:7: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   couldn't deduce template parameter ‘_Tp’
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:477:7: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare> priority_queue(const _Compare&, const _Sequence&)-> std::priority_queue<_Tp, _Sequence, _Compare>’
       priority_queue(const _Compare& __x, const _Sequence& __s)
       ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:477:7: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   couldn't deduce template parameter ‘_Tp’
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/queue:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:86,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:473:2: note: candidate: ‘template<class _Tp, class _Sequence, class _Compare, class _Seq, class _Requires> priority_queue()-> std::priority_queue<_Tp, _Sequence, _Compare>’
  priority_queue()
  ^~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_queue.h:473:2: note:   template argument deduction/substitution failed:
./Main.cpp:20:72: note:   candidate expects 0 arguments, 2 provided
     priority_queue q(greater<>{}, vector<pair<ld, tuple<ll, ll, ll>>>{});
                                                                        ^

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #