Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:62:17: error: 'set1' was not declared in this scope
- set1.insert({-nw_len,l});
- ^~~~
- a.cpp:62:17: note: suggested alternative: 's1'
- set1.insert({-nw_len,l});
- ^~~~
- s1
- a.cpp:63:17: error: 'set2' was not declared in this scope
- set2.insert(mt(l,nw_len,0));
- ^~~~
- a.cpp:63:17: note: suggested alternative: 's2'
- set2.insert(mt(l,nw_len,0));
- ^~~~
- s2
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:84:44: error: 'val' was not declared in this scope
- t = s2.lower_bound(mt(ans[-val], -1, -1));
- ^~~
- a.cpp:84:36: error: 'mt' was not declared in this scope
- t = s2.lower_bound(mt(ans[-val], -1, -1));
- ^~
- a.cpp:84:36: note: suggested alternative: 't'
- t = s2.lower_bound(mt(ans[-val], -1, -1));
- ^~
- t
- a.cpp:96:21: error: 'set2' was not declared in this scope
- t = set2.lower_bound(mt(ans[-val], -1, -1));
- ^~~~
- a.cpp:96:21: note: suggested alternative: 's2'
- t = set2.lower_bound(mt(ans[-val], -1, -1));
- ^~~~
- s2
- a.cpp:96:46: error: 'val' was not declared in this scope
- t = set2.lower_bound(mt(ans[-val], -1, -1));
- ^~~
- a.cpp:96:38: error: 'mt' was not declared in this scope
- t = set2.lower_bound(mt(ans[-val], -1, -1));
- ^~
- a.cpp:96:38: note: suggested alternative: 't'
- t = set2.lower_bound(mt(ans[-val], -1, -1));
- ^~
- t
- a.cpp:99:23: error: 'mt' was not declared in this scope
- s2.insert(mt(l, sz, 0));
- ^~
- a.cpp:99:23: note: suggested alternative: 't'
- s2.insert(mt(l, sz, 0));
- ^~
- t
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:62:17: error: 'set1' was not declared in this scope
- set1.insert({-nw_len,l});
- ^~~~
- a.cpp:62:17: note: suggested alternative: 's1'
- set1.insert({-nw_len,l});
- ^~~~
- s1
- a.cpp:63:17: error: 'set2' was not declared in this scope
- set2.insert(mt(l,nw_len,0));
- ^~~~
- a.cpp:63:17: note: suggested alternative: 's2'
- set2.insert(mt(l,nw_len,0));
- ^~~~
- s2
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:84:42: error: 'val' was not declared in this scope
- t = s2.lower_bound({ans[-val], -1, -1});
- ^~~
- a.cpp:84:55: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::lower_bound(<brace-enclosed initializer list>)'
- t = s2.lower_bound({ans[-val], -1, -1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:810:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- lower_bound(const key_type& __x)
- ^~~~~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:810:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:814:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) const [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- lower_bound(const key_type& __x) const
- ^~~~~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:814:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:820:2: note: candidate: 'template<class _Kt> decltype ((std::set<_Key, _Compare, _Alloc>::iterator)(((std::set<_Key, _Compare, _Alloc>*)this)->std::set<_Key, _Compare, _Alloc>::_M_t._M_lower_bound_tr(__x))) std::set<_Key, _Compare, _Alloc>::lower_bound(const _Kt&) [with _Kt = _Kt; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- lower_bound(const _Kt& __x)
- ^~~~~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:820:2: note: template argument deduction/substitution failed:
- a.cpp:84:55: note: couldn't deduce template parameter '_Kt'
- t = s2.lower_bound({ans[-val], -1, -1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:826:2: note: candidate: 'template<class _Kt> decltype ((std::set<_Key, _Compare, _Alloc>::const_iterator)(((const std::set<_Key, _Compare, _Alloc>*)this)->std::set<_Key, _Compare, _Alloc>::_M_t._M_lower_bound_tr(__x))) std::set<_Key, _Compare, _Alloc>::lower_bound(const _Kt&) const [with _Kt = _Kt; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- lower_bound(const _Kt& __x) const
- ^~~~~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:826:2: note: template argument deduction/substitution failed:
- a.cpp:84:55: note: couldn't deduce template parameter '_Kt'
- t = s2.lower_bound({ans[-val], -1, -1});
- ^
- a.cpp:96:21: error: 'set2' was not declared in this scope
- t = set2.lower_bound({ans[-val], -1, -1});
- ^~~~
- a.cpp:96:21: note: suggested alternative: 's2'
- t = set2.lower_bound({ans[-val], -1, -1});
- ^~~~
- s2
- a.cpp:96:44: error: 'val' was not declared in this scope
- t = set2.lower_bound({ans[-val], -1, -1});
- ^~~
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:62:17: error: 'set1' was not declared in this scope
- set1.insert({-nw_len,l});
- ^~~~
- a.cpp:62:17: note: suggested alternative: 's1'
- set1.insert({-nw_len,l});
- ^~~~
- s1
- a.cpp:63:17: error: 'set2' was not declared in this scope
- set2.insert(mt(l,nw_len,0));
- ^~~~
- a.cpp:63:17: note: suggested alternative: 's2'
- set2.insert(mt(l,nw_len,0));
- ^~~~
- s2
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:96:21: error: 'set2' was not declared in this scope
- t = set2.lower_bound({ans[-v], -1, -1});
- ^~~~
- a.cpp:96:21: note: suggested alternative: 's2'
- t = set2.lower_bound({ans[-v], -1, -1});
- ^~~~
- s2
- D:\programming\test>
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:62:17: error: 'set1' was not declared in this scope
- set1.insert({-nw_len,l});
- ^~~~
- a.cpp:62:17: note: suggested alternative: 's1'
- set1.insert({-nw_len,l});
- ^~~~
- s1
- a.cpp:63:17: error: 'set2' was not declared in this scope
- set2.insert(mt(l,nw_len,0));
- ^~~~
- a.cpp:63:17: note: suggested alternative: 's2'
- set2.insert(mt(l,nw_len,0));
- ^~~~
- s2
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:96:21: error: 'set2' was not declared in this scope
- t = set2.lower_bound({ans[-v], -1, -1});
- ^~~~
- a.cpp:96:21: note: suggested alternative: 's2'
- t = set2.lower_bound({ans[-v], -1, -1});
- ^~~~
- s2
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:62:17: error: 'set1' was not declared in this scope
- set1.insert({-nw_len,l});
- ^~~~
- a.cpp:62:17: note: suggested alternative: 's1'
- set1.insert({-nw_len,l});
- ^~~~
- s1
- a.cpp:63:17: error: 'set2' was not declared in this scope
- set2.insert(mt(l,nw_len,0));
- ^~~~
- a.cpp:63:17: note: suggested alternative: 's2'
- set2.insert(mt(l,nw_len,0));
- ^~~~
- s2
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- a.cpp:82:39: error: 'r' was not declared in this scope
- s1.erase({t -> r, r -> l});
- ^
- a.cpp:82:46: error: no matching function for call to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::erase(<brace-enclosed initializer list>)'
- s1.erase({t -> r, r -> l});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<std::pair<int, int>, bool (*)(std::pair<int, int>, std::pair<int, int>)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<int, int> >'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::pair<int, int>&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = std::pair<int, int>; _Compare = bool (*)(std::pair<int, int>, std::pair<int, int>); _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:16: error: 't' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^
- a.cpp:56:13: error: 'mt' was not declared in this scope
- s2.erase(mt(t.se,t.fi,0));
- ^~
- a.cpp:56:13: note: suggested alternative: 'm'
- s2.erase(mt(t.se,t.fi,0));
- ^~
- m
- a.cpp:57:31: error: 'val' was not declared in this scope
- s2.insert(mt(t.se,val,1));
- ^~~
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.fi, 0});
- ^
- a.cpp:56:32: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.fi, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:57:34: error: 'val' was not declared in this scope
- s2.insert({t.second, val, 1});
- ^~~
- a.cpp:57:41: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, val, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:57:41: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, val, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.fi, 0});
- ^
- a.cpp:56:32: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.fi, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:57:34: error: 'val' was not declared in this scope
- s2.insert({t.second, val, 1});
- ^~~
- a.cpp:57:41: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, val, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:57:41: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, val, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:56:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.first, 0});
- ^
- a.cpp:56:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.first, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:57:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:57:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:58:23: error: 'val' was not declared in this scope
- if(t.fi - val > 0)
- ^~~
- a.cpp:72:13: error: 'tie' was not declared in this scope
- tie(l, sz, fl) = *t;
- ^~~
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:57:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.first, 0});
- ^
- a.cpp:57:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.first, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:58:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:58:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:73:31: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&, int&>' and 'const S')
- tie(l, sz, fl) = *t;
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
- from a.cpp:4:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:835:7: note: candidate: 'std::tuple<_Elements>& std::tuple<_Elements>::operator=(const std::tuple<_Elements>&) [with _Elements = {int&, int&, int&}]'
- operator=(const tuple& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:835:7: note: no known conversion for argument 1 from 'const S' to 'const std::tuple<int&, int&, int&>&'
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:842:7: note: candidate: 'std::tuple<_Elements>& std::tuple<_Elements>::operator=(std::tuple<_Elements>&&) [with _Elements = {int&, int&, int&}]'
- operator=(tuple&& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:842:7: note: no known conversion for argument 1 from 'const S' to 'std::tuple<int&, int&, int&>&&'
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note: candidate: 'template<class ... _UElements> typename std::enable_if<(sizeof... (_UElements) == sizeof... (_Elements)), std::tuple<_Elements>&>::type std::tuple<_Elements>::operator=(const std::tuple<_Args1 ...>&) [with _UElements = {_UElements ...}; _Elements = {int&, int&, int&}]'
- operator=(const tuple<_UElements...>& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note: template argument deduction/substitution failed:
- a.cpp:73:31: note: 'const S' is not derived from 'const std::tuple<_Tps ...>'
- tie(l, sz, fl) = *t;
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
- from a.cpp:4:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note: candidate: 'template<class ... _UElements> typename std::enable_if<(sizeof... (_UElements) == sizeof... (_Elements)), std::tuple<_Elements>&>::type std::tuple<_Elements>::operator=(std::tuple<_Args1 ...>&&) [with _UElements = {_UElements ...}; _Elements = {int&, int&, int&}]'
- operator=(tuple<_UElements...>&& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note: template argument deduction/substitution failed:
- a.cpp:73:31: note: types 'std::tuple<_Tps ...>' and 'const S' have incompatible cv-qualifiers
- tie(l, sz, fl) = *t;
- ^
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.first, 0});
- ^
- a.cpp:63:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.first, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:64:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:79:31: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&, int&>' and 'const S')
- tie(l, sz, fl) = *t;
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
- from a.cpp:4:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:835:7: note: candidate: 'std::tuple<_Elements>& std::tuple<_Elements>::operator=(const std::tuple<_Elements>&) [with _Elements = {int&, int&, int&}]'
- operator=(const tuple& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:835:7: note: no known conversion for argument 1 from 'const S' to 'const std::tuple<int&, int&, int&>&'
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:842:7: note: candidate: 'std::tuple<_Elements>& std::tuple<_Elements>::operator=(std::tuple<_Elements>&&) [with _Elements = {int&, int&, int&}]'
- operator=(tuple&& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:842:7: note: no known conversion for argument 1 from 'const S' to 'std::tuple<int&, int&, int&>&&'
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note: candidate: 'template<class ... _UElements> typename std::enable_if<(sizeof... (_UElements) == sizeof... (_Elements)), std::tuple<_Elements>&>::type std::tuple<_Elements>::operator=(const std::tuple<_Args1 ...>&) [with _UElements = {_UElements ...}; _Elements = {int&, int&, int&}]'
- operator=(const tuple<_UElements...>& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note: template argument deduction/substitution failed:
- a.cpp:79:31: note: 'const S' is not derived from 'const std::tuple<_Tps ...>'
- tie(l, sz, fl) = *t;
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
- from a.cpp:4:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note: candidate: 'template<class ... _UElements> typename std::enable_if<(sizeof... (_UElements) == sizeof... (_Elements)), std::tuple<_Elements>&>::type std::tuple<_Elements>::operator=(std::tuple<_Args1 ...>&&) [with _UElements = {_UElements ...}; _Elements = {int&, int&, int&}]'
- operator=(tuple<_UElements...>&& __in)
- ^~~~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note: template argument deduction/substitution failed:
- a.cpp:79:31: note: types 'std::tuple<_Tps ...>' and 'const S' have incompatible cv-qualifiers
- tie(l, sz, fl) = *t;
- ^
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:14: error: 't' was not declared in this scope
- s2.erase({t.second, t.first, 0});
- ^
- a.cpp:63:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
- s2.erase({t.second, t.first, 0});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __position)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:654:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::const_iterator' {aka 'std::_Rb_tree_const_iterator<S>'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::erase(const key_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::size_type = long long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = S]'
- erase(const key_type& __x)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:684:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>]'
- erase(const_iterator __first, const_iterator __last)
- ^~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:706:7: note: candidate expects 2 arguments, 1 provided
- a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:64:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:15: error: 't' was not declared in this scope
- s2.erase(S(t.second, t.first, 0));
- ^
- a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:64:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:69:39: error: no matching function for call to 'S::S(int, int&)'
- s1.insert(S(-nw_len, l));
- ^
- a.cpp:11:6: note: candidate: 'S::S(int, int, int)'
- int S(int _l, int _r, int _x)
- ^
- a.cpp:11:6: note: candidate expects 3 arguments, 2 provided
- a.cpp:8:8: note: candidate: 'constexpr S::S(const S&)'
- struct S
- ^
- a.cpp:8:8: note: candidate expects 1 argument, 2 provided
- a.cpp:8:8: note: candidate: 'constexpr S::S(S&&)'
- a.cpp:8:8: note: candidate expects 1 argument, 2 provided
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:15: error: 't' was not declared in this scope
- s2.erase(S(t.second, t.first, 0));
- ^
- a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:64:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- a.cpp:69:39: error: no matching function for call to 'S::S(int, int&)'
- s1.insert(S(-nw_len, l));
- ^
- a.cpp:11:6: note: candidate: 'S::S(int, int, int)'
- int S(int _l, int _r, int _x)
- ^
- a.cpp:11:6: note: candidate expects 3 arguments, 2 provided
- a.cpp:8:8: note: candidate: 'constexpr S::S(const S&)'
- struct S
- ^
- a.cpp:8:8: note: candidate expects 1 argument, 2 provided
- a.cpp:8:8: note: candidate: 'constexpr S::S(S&&)'
- a.cpp:8:8: note: candidate expects 1 argument, 2 provided
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:15: error: 't' was not declared in this scope
- s2.erase(S(t.second, t.first, 0));
- ^
- a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:509:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const S&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:518:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::set<S, bool (*)(S, S)>::value_type&&' {aka 'S&&'}
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, const value_type& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:546:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<S>; std::set<_Key, _Compare, _Alloc>::value_type = S]'
- insert(const_iterator __position, value_type&& __x)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:551:7: note: candidate expects 2 arguments, 1 provided
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(_InputIterator __first, _InputIterator __last)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:566:2: note: template argument deduction/substitution failed:
- a.cpp:64:39: note: candidate expects 2 arguments, 1 provided
- s2.insert({t.second, v, 1});
- ^
- In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
- from a.cpp:3:
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = S; _Compare = bool (*)(S, S); _Alloc = std::allocator<S>]'
- insert(initializer_list<value_type> __l)
- ^~~~~~
- C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:578:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<S>'
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:63:15: error: 't' was not declared in this scope
- s2.erase(S(t.second, t.first, 0));
- ^
- D:\programming\test>g++ -o a a.cpp
- a.cpp:11:30: error: return type specification for constructor invalid
- int S(int _l, int _r, int _x)
- ^
- a.cpp: In function 'int main()':
- a.cpp:65:16: error: 't' was not declared in this scope
- if(t.fi - v > 0)
- ^
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:67:30: error: 't' was not declared in this scope
- int nw_len = t.fi - v;
- ^
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 3
- 1 2 1
- D:\programming\test>a
- 6 8
- 2
- 3
- -1
- 3
- -1 3
- -16 8
- -1-12
- -13
- -1
- D:\programming\test>-1
- "-1" не является внутренней или внешней
- командой, исполняемой программой или пакетным файлом.
- D:\programming\test>3
- 3
- -5
- 2
- 2
- 4
- 4
- D:\programming\test>a
- 6 8
- 2
- 3
- -1-1
- 3
- -13
- -1-5
- 2
- -12
- -1
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 6 8
- 2
- 1
- 3
- -1
- 6 8
- -1
- -1
- r
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 6 8
- 2
- 1
- 3
- 3
- -1
- 3
- 1
- t
- D:\programming\test>g++ -o a a.cpp
- a.cpp: In function 'int main()':
- a.cpp:66:4: error: 't' was not declared in this scope
- t.first *= -1;
- ^
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 6 8
- 2
- -1
- 3
- -1
- y
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 6 8
- 1
- 1
- 2
- 2
- 3
- 4
- 4
- -1
- 5
- -1
- 6
- -1
- 7
- -1
- 8
- -1
- D:\programming\test>a
- 6 8
- 2
- 1
- 3
- 3
- -1
- 3
- 1
- 5
- -1
- 5
- -1
- 5
- -1
- 5
- -1
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>a
- 6 8
- 2
- 1
- 3
- 3
- -1
- 3
- -1
- 3
- -1
- -5
- 2
- 1
- 2
- -1
- D:\programming\test>g++ -o a a.cpp
- D:\programming\test>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement