ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 ba7ff0f5-ffb6-4604-9632-372d5adfa752
コード
#ifndef INCLUDE_MACRO #define INCLUDE_MACRO #include __FILE__ signed main() { inii(n, m); invi(kind, m); invi(ene, m); si se; mi ma; pi output = mp(-1, -1); int rinzi = 0; int mini = 50000000000000000LL; int count = 0; rep(i, m + 1) { if (se.size() >= n) { i--; if (mini > rinzi) { output = mp(count, i); mini = rinzi; } ma[kind.at(count)]--; if (ma[kind.at(count)] == 0) se.erase(kind.at(count)); rinzi -= ene.at(count); count++; } else { if (i == m) { break; } se.insert(kind.at(i)); ma[kind.at(i)]++; rinzi += ene.at(i); } //cout << rinzi space count space mini space se.size() << endl; } if (output == mp(-1, -1)) { cout << -1 space - 1 << endl; return 0; } cout << output.first + 1 space output.second + 2 << endl; return 0; } #else //#include <bits/stdc++.h> #include <iostream> // cout, endl, cin #include <string> // string, to_string, stoi #include <vector> // vector #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, make_tuple #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <cmath> // sqrt #include <map> // map #include <queue> // queue, priority_queue #include <set> // set #include <stack> // stack #include <deque> // deque #include <unordered_map> // unordered_map #include <unordered_set> // unordered_set #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <chrono> // Timer #include <cassert> #include <numeric> #include <iomanip> #include <limits> #include <random> using namespace std; #define set_dxy vi dx(4); dx = {1, -1, 0, 0}; vi dy(4); dy = {0, 0, 1, -1} #define ini(x) int x; cin >> x #define ind(x) double x; cin >> x #define ins(x) string x; cin >> x #define inc(x) char x; cin >> x #define inii(x, y) ini(x); ini(y) #define inis(x, y) ini(x); ins(y) #define insi(x, y) ins(x); ini(y) #define inss(x, y) ins(x); ins(y) #define iniii(x, y, z) inii(x, y); ini(z); #define invi(vec, x); vi vec(x); rep(i, x){cin >> vec.at(i);} #define endl "\n" #define space << " " << #define under(N) fixed << setprecision(N) #define abssort(aaa) sort(all(aaa)); ranges::sort(aaa,greater{},[](const auto a){return abs(a);}); reverse(all(aaa)) #define pi pair<int, int> #define mp make_pair #define mi map<int, int> #define mis map<int, set<int>> #define vi vector<int> #define vd vector<double> #define vc vector<char> #define vs vector<string> #define vb vector<bool> #define vpi vector<pi> #define si set<int> #define qi queue<int> #define vvi vector<vi> #define vvc vector<vc> #define tat(v, i, j) v.at(i).at(j) #define cy cout << "Yes" << endl #define cn cout << "No" << endl #define dame cout << -1 << endl #define check cout << "check" << endl #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define doing(P) sort(all(P));do #define did(P) while(next_permutation(all(P))) #define rep(i, n) for (int i = 0; i < n; i++) #define orep(i, n) for (int i = 1; i <= n; i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define nfor(i, a, b) for (int i = a; i < b; i++) #define dfor(i, a, b) for (int i = a; i > b; i--) #define allout(x) cout << "all:" << endl; for (auto aaa : x) {cout << aaa << " ";} cout << endl; cout << "----------end" << endl; #define pairout(x) cout << "f:" << x.first << " s:" << x.second << endl; cout << "----------end" << endl; #define tallout(x) cout << "tall:" << endl; for (auto aaa : x) {for (auto bbb : aaa) {cout << bbb << " ";} cout << endl;} cout << "----------end" << endl; #define queout(q) cout << "queue:" << endl; while (!q.empty()) {cout << q.front() << " "; q.pop();} cout << endl; cout << "----------end" << endl; #define topout(x) cout << "top:" << endl; while (!x.empty()) {cout << x.top() << " "; x.pop();} cout << endl; cout << "----------end" << endl; #define allchar 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' #define ALLchar 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' #define int int64_t #define double long double #define uint unsigned long long #define modint const int mod = 998244353 uint abs_sqrt(uint n) { if (n == 0) return 0; uint rinzi = sqrt(n) - 1; return rinzi * (rinzi + 2) < n ? rinzi + 1 : rinzi; } class Timer { chrono::system_clock::time_point start; public: Timer() : start(chrono::system_clock::now()) {} double count() { chrono::duration<double> Time_ = chrono::system_clock::now() - start; return Time_.count(); } bool is_under(double x) { return (this->count()) < x; } }; bool out_glid(int i, int j, int h, int w) { if (i < 0 || h <= i || j < 0 || w <= j) return true; else return false; } #endif
結果
問題
点数
言語
結果
実行時間
メモリ
F - Sliding
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:37:16: error: no match for 'operator==' (operand types are 'std::pair<long int, long int>' and 'std::pair<int, int>') 37 | if (output == mp(-1, -1)) { | ~~~~~~ ^~ | | | pair<long int,long int> In file included from /usr/include/c++/13/string:43, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41, from Main.cpp:48, from Main.cpp:3: /usr/include/c++/13/bits/allocator.h:237:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' (reversed) 237 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/13/bits/allocator.h:237:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::allocator<_CharT>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/string:48: /usr/include/c++/13/bits/stl_iterator.h:534:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' (reversed) 534 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:534:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::reverse_iterator<_IteratorL>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/stl_iterator.h:1678:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' (reversed) 1678 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1678:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::move_iterator<_IteratorL>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/basic_string.h:47, from /usr/include/c++/13/string:54: /usr/include/c++/13/string_view:616:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' (reversed) 616 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/13/string_view:616:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/basic_string.h:3727:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' (reversed) 3727 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/basic_string.h:3727:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38, from /usr/include/c++/13/bits/memory_resource.h:41, from /usr/include/c++/13/string:58: /usr/include/c++/13/tuple:1919:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const tuple<_UTypes ...>&, const tuple<_UTypes ...>&)' (reversed) 1919 | operator==(const tuple<_TElements...>& __t, | ^~~~~~~~ /usr/include/c++/13/tuple:1919:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::tuple<_UTypes ...>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/ranges_algo.h:36, from /usr/include/c++/13/algorithm:63, from Main.cpp:51: /usr/include/c++/13/optional:1296:5: note: candidate: 'template<class _Tp> constexpr bool std::operator==(const optional<_Tp>&, nullopt_t)' (reversed) 1296 | operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept | ^~~~~~~~ /usr/include/c++/13/optional:1296:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::optional<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/shared_ptr_base.h:59, from /usr/include/c++/13/bits/shared_ptr.h:53, from /usr/include/c++/13/chrono:49, from Main.cpp:66: /usr/include/c++/13/bits/unique_ptr.h:829:5: note: candidate: 'template<class _Tp, class _Dp, class _Up, class _Ep> constexpr bool std::operator==(const unique_ptr<_Tp, _Dp>&, const unique_ptr<_Up, _Ep>&)' (reversed) 829 | operator==(const unique_ptr<_Tp, _Dp>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/unique_ptr.h:829:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::unique_ptr<_Tp, _Dp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/unique_ptr.h:837:5: note: candidate: 'template<class _Tp, class _Dp> constexpr bool std::operator==(const unique_ptr<_Tp, _Dp>&, nullptr_t)' (reversed) 837 | operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept | ^~~~~~~~ /usr/include/c++/13/bits/unique_ptr.h:837:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::unique_ptr<_Tp, _Dp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/shared_ptr_base.h:1793:5: note: candidate: 'template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const __shared_ptr<_Tp1, _Lp>&, const __shared_ptr<_Tp2, _Lp>&)' (reversed) 1793 | operator==(const __shared_ptr<_Tp1, _Lp>& __a, | ^~~~~~~~ /usr/include/c++/13/bits/shared_ptr_base.h:1793:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::__shared_ptr<_Tp1, _Lp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/shared_ptr_base.h:1799:5: note: candidate: 'template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const __shared_ptr<_Tp, _Lp>&, nullptr_t)' (reversed) 1799 | operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept | ^~~~~~~~ /usr/include/c++/13/bits/shared_ptr_base.h:1799:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::__shared_ptr<_Tp, _Lp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/shared_ptr.h:555:5: note: candidate: 'template<class _Tp, class _Up> bool std::operator==(const shared_ptr<_Tp>&, const shared_ptr<_Tp>&)' (reversed) 555 | operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept | ^~~~~~~~ /usr/include/c++/13/bits/shared_ptr.h:555:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::shared_ptr<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/shared_ptr.h:561:5: note: candidate: 'template<class _Tp> bool std::operator==(const shared_ptr<_Tp>&, nullptr_t)' (reversed) 561 | operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept | ^~~~~~~~ /usr/include/c++/13/bits/shared_ptr.h:561:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::shared_ptr<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/ios_base.h:46: /usr/include/c++/13/system_error:465:3: note: candidate: 'bool std::operator==(const error_code&, const error_condition&)' (reversed) 465 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept | ^~~~~~~~ /usr/include/c++/13/system_error:465:32: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'const std::error_code&' 465 | operator==(const error_code& __lhs, const error_condition& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/13/iosfwd:42, from /usr/include/c++/13/ios:40: /usr/include/c++/13/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)' 192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/13/bits/postypes.h:192:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::fpos<_StateT>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/stl_iterator.h:593:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorL>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' 593 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:593:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::reverse_iterator<_IteratorL>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/stl_iterator.h:1748:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1748 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1748:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::move_iterator<_IteratorL>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/string:51: /usr/include/c++/13/bits/stl_pair.h:812:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 812 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_pair.h:812:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: deduced conflicting types for parameter '_T1' ('long int' and 'int') 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/string_view:609:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' 609 | operator==(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/13/string_view:609:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/basic_string.h:3710:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 3710 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/basic_string.h:3710:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/bits/locale_facets.h:48, from /usr/include/c++/13/bits/basic_ios.h:37, from /usr/include/c++/13/ios:46: /usr/include/c++/13/bits/streambuf_iterator.h:234:5: note: candidate: 'template<class _CharT, class _Traits> bool std::operator==(const istreambuf_iterator<_CharT, _Traits>&, const istreambuf_iterator<_CharT, _Traits>&)' 234 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a, | ^~~~~~~~ /usr/include/c++/13/bits/streambuf_iterator.h:234:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::istreambuf_iterator<_CharT, _Traits>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/vector:66, from Main.cpp:50: /usr/include/c++/13/bits/stl_vector.h:2040:5: note: candidate: 'template<class _Tp, class _Alloc> constexpr bool std::operator==(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' 2040 | operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:2040:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::vector<_Tp, _Alloc>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/optional:1236:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_eq_t<_Tp, _Up> std::operator==(const optional<_Tp>&, const optional<_Up>&)' 1236 | operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | ^~~~~~~~ /usr/include/c++/13/optional:1236:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::optional<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/optional:1364:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_eq_t<_Tp, _Up> std::operator==(const optional<_Tp>&, const _Up&)' 1364 | operator==(const optional<_Tp>& __lhs, const _Up& __rhs) | ^~~~~~~~ /usr/include/c++/13/optional:1364:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::optional<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/optional:1370:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_eq_t<_Up, _Tp> std::operator==(const _Up&, const optional<_Tp>&)' 1370 | operator==(const _Up& __lhs, const optional<_Tp>& __rhs) | ^~~~~~~~ /usr/include/c++/13/optional:1370:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<int, int>' is not derived from 'const std::optional<_Tp>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/map:63, from Main.cpp:57: /usr/include/c++/13/bits/stl_map.h:1513:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const map<_Key, _Tp, _Compare, _Allocator>&, const map<_Key, _Tp, _Compare, _Allocator>&)' 1513 | operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_map.h:1513:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::map<_Key, _Tp, _Compare, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/map:64: /usr/include/c++/13/bits/stl_multimap.h:1134:5: note: candidate: 'template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const multimap<_Key, _Tp, _Compare, _Allocator>&, const multimap<_Key, _Tp, _Compare, _Allocator>&)' 1134 | operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_multimap.h:1134:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/deque:66, from /usr/include/c++/13/queue:62, from Main.cpp:58: /usr/include/c++/13/bits/stl_deque.h:2290:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator==(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)' 2290 | operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_deque.h:2290:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::deque<_Tp, _Alloc>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/queue:66: /usr/include/c++/13/bits/stl_queue.h:380:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator==(const queue<_Tp, _Seq>&, const queue<_Tp, _Seq>&)' 380 | operator==(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_queue.h:380:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::queue<_Tp, _Seq>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/set:63, from Main.cpp:59: /usr/include/c++/13/bits/stl_set.h:987:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator==(const set<_Key, _Compare, _Allocator>&, const set<_Key, _Compare, _Allocator>&)' 987 | operator==(const set<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_set.h:987:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::set<_Key, _Compare, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/set:64: /usr/include/c++/13/bits/stl_multiset.h:973:5: note: candidate: 'template<class _Key, class _Compare, class _Alloc> bool std::operator==(const multiset<_Key, _Compare, _Allocator>&, const multiset<_Key, _Compare, _Allocator>&)' 973 | operator==(const multiset<_Key, _Compare, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_multiset.h:973:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::multiset<_Key, _Compare, _Allocator>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/stack:63, from Main.cpp:60: /usr/include/c++/13/bits/stl_stack.h:356:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator==(const stack<_Tp, _Seq>&, const stack<_Tp, _Seq>&)' 356 | operator==(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_stack.h:356:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::stack<_Tp, _Seq>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/unordered_map:41, from Main.cpp:62: /usr/include/c++/13/bits/unordered_map.h:2143:5: note: candidate: 'template<class _Key1, class _Tp1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)' 2143 | operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/unordered_map.h:2143:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/unordered_map.h:2157:5: note: candidate: 'template<class _Key1, class _Tp1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)' 2157 | operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/unordered_map.h:2157:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/unordered_set:41, from Main.cpp:63: /usr/include/c++/13/bits/unordered_set.h:1813:5: note: candidate: 'template<class _Value1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&)' 1813 | operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/unordered_set.h:1813:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/bits/unordered_set.h:1827:5: note: candidate: 'template<class _Value1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&)' 1827 | operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/unordered_set.h:1827:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/format:38, from /usr/include/c++/13/bits/chrono_io.h:39, from /usr/include/c++/13/chrono:3370: /usr/include/c++/13/array:297:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::operator==(const array<_Tp, _Nm>&, const array<_Tp, _Nm>&)' 297 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) | ^~~~~~~~ /usr/include/c++/13/array:297:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::array<_Tp, _Nm>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/format:47: /usr/include/c++/13/variant:1266:3: note: candidate: 'template<class ... _Types> constexpr bool std::operator==(const variant<_Types ...>&, const variant<_Types ...>&)' 1266 | _VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/variant:1266:3: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::variant<_Types ...>' 37 | if (output == mp(-1, -1)) { | ^ In file included from /usr/include/c++/13/random:53, from Main.cpp:71: /usr/include/c++/13/bits/random.tcc:1908:5: note: candidate: 'template<class _RealType1> bool std::operator==(const normal_distribution<_RealType>&, const normal_distribution<_RealType>&)' 1908 | operator==(const std::normal_distribution<_RealType>& __d1, | ^~~~~~~~ /usr/include/c++/13/bits/random.tcc:1908:5: note: template argument deduction/substitution failed: Main.cpp:37:28: note: 'std::pair<long int, long int>' is not derived from 'const std::normal_distribution<_RealType>' 37 | if (output == mp(-1, -1)) { | ^ /usr/include/c++/13/system_error:449:3: note: candidate: 'bool std::operator==(const error_code&, const error_code&)' 449 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /usr/include/c++/13/system_error:449:32: note: no known conversion for argument 1 from 'std::pair<long int, long int>' to 'const std::error_code&' 449 | operator==(const error_code& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13/system_error:480:3: note: candidate: 'bool std::operator==(const error_condition&, const error_condition&)' 480 | operator==(const error_condition& __lhs, | ^~~~~~~~ /usr/include/c++/13/system_error:480:37: note: no known conversion for argument 1 from 'std::pair<long int, long int>' to 'const std::error_condition&' 480 | operator==(const error_condition& __lhs, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13/variant:1273:18: note: candidate: 'constexpr bool std::operator==(monostate, monostate)' 1273 | constexpr bool operator==(monostate, monostate) noexcept { return true; } | ^~~~~~~~ /usr/include/c++/13/variant:1273:29: note: no known conversion for argument 1 from 'std::pair<long int, long int>' to 'std::monostate' 1273 | constexpr bool operator==(monostate, monostate) noexcept { return true; } | ^~~~~~~~~