Advertisement
Georgiy1108

Untitled

Jan 12th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 103.97 KB | None | 0 0
  1.  
  2. D:\programming\test>g++ -o a a.cpp
  3. a.cpp: In function 'int main()':
  4. a.cpp:56:16: error: 't' was not declared in this scope
  5.     s2.erase(mt(t.se,t.fi,0));
  6.                 ^
  7. a.cpp:56:13: error: 'mt' was not declared in this scope
  8.     s2.erase(mt(t.se,t.fi,0));
  9.              ^~
  10. a.cpp:56:13: note: suggested alternative: 'm'
  11.     s2.erase(mt(t.se,t.fi,0));
  12.              ^~
  13.              m
  14. a.cpp:57:31: error: 'val' was not declared in this scope
  15.              s2.insert(mt(t.se,val,1));
  16.                                ^~~
  17. a.cpp:62:17: error: 'set1' was not declared in this scope
  18.                  set1.insert({-nw_len,l});
  19.                  ^~~~
  20. a.cpp:62:17: note: suggested alternative: 's1'
  21.                  set1.insert({-nw_len,l});
  22.                  ^~~~
  23.                  s1
  24. a.cpp:63:17: error: 'set2' was not declared in this scope
  25.                  set2.insert(mt(l,nw_len,0));
  26.                  ^~~~
  27. a.cpp:63:17: note: suggested alternative: 's2'
  28.                  set2.insert(mt(l,nw_len,0));
  29.                  ^~~~
  30.                  s2
  31. a.cpp:72:13: error: 'tie' was not declared in this scope
  32.              tie(l, sz, fl) = *t;
  33.              ^~~
  34. a.cpp:82:39: error: 'r' was not declared in this scope
  35.                      s1.erase({t -> r, r -> l});
  36.                                        ^
  37. 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>)'
  38.                      s1.erase({t -> r, r -> l});
  39.                                               ^
  40. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  41.                  from a.cpp:3:
  42. 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> >]'
  43.        erase(const_iterator __position)
  44.        ^~~~~
  45. 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> >'}
  46. 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>]'
  47.        erase(const key_type& __x)
  48.        ^~~~~
  49. 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>&'}
  50. 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> >]'
  51.        erase(const_iterator __first, const_iterator __last)
  52.        ^~~~~
  53. 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
  54. a.cpp:84:44: error: 'val' was not declared in this scope
  55.                  t = s2.lower_bound(mt(ans[-val], -1, -1));
  56.                                             ^~~
  57. a.cpp:84:36: error: 'mt' was not declared in this scope
  58.                  t = s2.lower_bound(mt(ans[-val], -1, -1));
  59.                                     ^~
  60. a.cpp:84:36: note: suggested alternative: 't'
  61.                  t = s2.lower_bound(mt(ans[-val], -1, -1));
  62.                                     ^~
  63.                                     t
  64. a.cpp:96:21: error: 'set2' was not declared in this scope
  65.                  t = set2.lower_bound(mt(ans[-val], -1, -1));
  66.                      ^~~~
  67. a.cpp:96:21: note: suggested alternative: 's2'
  68.                  t = set2.lower_bound(mt(ans[-val], -1, -1));
  69.                      ^~~~
  70.                      s2
  71. a.cpp:96:46: error: 'val' was not declared in this scope
  72.                  t = set2.lower_bound(mt(ans[-val], -1, -1));
  73.                                               ^~~
  74. a.cpp:96:38: error: 'mt' was not declared in this scope
  75.                  t = set2.lower_bound(mt(ans[-val], -1, -1));
  76.                                       ^~
  77. a.cpp:96:38: note: suggested alternative: 't'
  78.                  t = set2.lower_bound(mt(ans[-val], -1, -1));
  79.                                       ^~
  80.                                       t
  81. a.cpp:99:23: error: 'mt' was not declared in this scope
  82.              s2.insert(mt(l, sz, 0));
  83.                        ^~
  84. a.cpp:99:23: note: suggested alternative: 't'
  85.              s2.insert(mt(l, sz, 0));
  86.                        ^~
  87.                        t
  88.  
  89. D:\programming\test>g++ -o a a.cpp
  90. a.cpp: In function 'int main()':
  91. a.cpp:56:16: error: 't' was not declared in this scope
  92.     s2.erase(mt(t.se,t.fi,0));
  93.                 ^
  94. a.cpp:56:13: error: 'mt' was not declared in this scope
  95.     s2.erase(mt(t.se,t.fi,0));
  96.              ^~
  97. a.cpp:56:13: note: suggested alternative: 'm'
  98.     s2.erase(mt(t.se,t.fi,0));
  99.              ^~
  100.              m
  101. a.cpp:57:31: error: 'val' was not declared in this scope
  102.              s2.insert(mt(t.se,val,1));
  103.                                ^~~
  104. a.cpp:62:17: error: 'set1' was not declared in this scope
  105.                  set1.insert({-nw_len,l});
  106.                  ^~~~
  107. a.cpp:62:17: note: suggested alternative: 's1'
  108.                  set1.insert({-nw_len,l});
  109.                  ^~~~
  110.                  s1
  111. a.cpp:63:17: error: 'set2' was not declared in this scope
  112.                  set2.insert(mt(l,nw_len,0));
  113.                  ^~~~
  114. a.cpp:63:17: note: suggested alternative: 's2'
  115.                  set2.insert(mt(l,nw_len,0));
  116.                  ^~~~
  117.                  s2
  118. a.cpp:72:13: error: 'tie' was not declared in this scope
  119.              tie(l, sz, fl) = *t;
  120.              ^~~
  121. a.cpp:82:39: error: 'r' was not declared in this scope
  122.                      s1.erase({t -> r, r -> l});
  123.                                        ^
  124. 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>)'
  125.                      s1.erase({t -> r, r -> l});
  126.                                               ^
  127. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  128.                  from a.cpp:3:
  129. 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> >]'
  130.        erase(const_iterator __position)
  131.        ^~~~~
  132. 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> >'}
  133. 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>]'
  134.        erase(const key_type& __x)
  135.        ^~~~~
  136. 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>&'}
  137. 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> >]'
  138.        erase(const_iterator __first, const_iterator __last)
  139.        ^~~~~
  140. 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
  141. a.cpp:84:42: error: 'val' was not declared in this scope
  142.                  t = s2.lower_bound({ans[-val], -1, -1});
  143.                                           ^~~
  144. a.cpp:84:55: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::lower_bound(<brace-enclosed initializer list>)'
  145.                  t = s2.lower_bound({ans[-val], -1, -1});
  146.                                                        ^
  147. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  148.                  from a.cpp:3:
  149. 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]'
  150.        lower_bound(const key_type& __x)
  151.        ^~~~~~~~~~~
  152. 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&'}
  153. 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]'
  154.        lower_bound(const key_type& __x) const
  155.        ^~~~~~~~~~~
  156. 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&'}
  157. 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>]'
  158.   lower_bound(const _Kt& __x)
  159.   ^~~~~~~~~~~
  160. 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:
  161. a.cpp:84:55: note:   couldn't deduce template parameter '_Kt'
  162.                 t = s2.lower_bound({ans[-val], -1, -1});
  163.                                                       ^
  164. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  165.                 from a.cpp:3:
  166. 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>]'
  167.  lower_bound(const _Kt& __x) const
  168.  ^~~~~~~~~~~
  169. 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:
  170. a.cpp:84:55: note:   couldn't deduce template parameter '_Kt'
  171.                  t = s2.lower_bound({ans[-val], -1, -1});
  172.                                                        ^
  173. a.cpp:96:21: error: 'set2' was not declared in this scope
  174.                  t = set2.lower_bound({ans[-val], -1, -1});
  175.                      ^~~~
  176. a.cpp:96:21: note: suggested alternative: 's2'
  177.                  t = set2.lower_bound({ans[-val], -1, -1});
  178.                      ^~~~
  179.                      s2
  180. a.cpp:96:44: error: 'val' was not declared in this scope
  181.                  t = set2.lower_bound({ans[-val], -1, -1});
  182.                                             ^~~
  183.  
  184. D:\programming\test>g++ -o a a.cpp
  185. a.cpp: In function 'int main()':
  186. a.cpp:56:16: error: 't' was not declared in this scope
  187.     s2.erase(mt(t.se,t.fi,0));
  188.                 ^
  189. a.cpp:56:13: error: 'mt' was not declared in this scope
  190.     s2.erase(mt(t.se,t.fi,0));
  191.              ^~
  192. a.cpp:56:13: note: suggested alternative: 'm'
  193.     s2.erase(mt(t.se,t.fi,0));
  194.              ^~
  195.              m
  196. a.cpp:57:31: error: 'val' was not declared in this scope
  197.              s2.insert(mt(t.se,val,1));
  198.                                ^~~
  199. a.cpp:62:17: error: 'set1' was not declared in this scope
  200.                  set1.insert({-nw_len,l});
  201.                  ^~~~
  202. a.cpp:62:17: note: suggested alternative: 's1'
  203.                  set1.insert({-nw_len,l});
  204.                  ^~~~
  205.                  s1
  206. a.cpp:63:17: error: 'set2' was not declared in this scope
  207.                  set2.insert(mt(l,nw_len,0));
  208.                  ^~~~
  209. a.cpp:63:17: note: suggested alternative: 's2'
  210.                  set2.insert(mt(l,nw_len,0));
  211.                  ^~~~
  212.                  s2
  213. a.cpp:72:13: error: 'tie' was not declared in this scope
  214.              tie(l, sz, fl) = *t;
  215.              ^~~
  216. a.cpp:82:39: error: 'r' was not declared in this scope
  217.                      s1.erase({t -> r, r -> l});
  218.                                        ^
  219. 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>)'
  220.                      s1.erase({t -> r, r -> l});
  221.                                               ^
  222. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  223.                  from a.cpp:3:
  224. 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> >]'
  225.        erase(const_iterator __position)
  226.        ^~~~~
  227. 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> >'}
  228. 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>]'
  229.        erase(const key_type& __x)
  230.        ^~~~~
  231. 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>&'}
  232. 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> >]'
  233.        erase(const_iterator __first, const_iterator __last)
  234.        ^~~~~
  235. 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
  236. a.cpp:96:21: error: 'set2' was not declared in this scope
  237.                  t = set2.lower_bound({ans[-v], -1, -1});
  238.                      ^~~~
  239. a.cpp:96:21: note: suggested alternative: 's2'
  240.                  t = set2.lower_bound({ans[-v], -1, -1});
  241.                      ^~~~
  242.                      s2
  243.  
  244. D:\programming\test>
  245. D:\programming\test>g++ -o a a.cpp
  246. a.cpp: In function 'int main()':
  247. a.cpp:56:16: error: 't' was not declared in this scope
  248.     s2.erase(mt(t.se,t.fi,0));
  249.                 ^
  250. a.cpp:56:13: error: 'mt' was not declared in this scope
  251.     s2.erase(mt(t.se,t.fi,0));
  252.              ^~
  253. a.cpp:56:13: note: suggested alternative: 'm'
  254.     s2.erase(mt(t.se,t.fi,0));
  255.              ^~
  256.              m
  257. a.cpp:57:31: error: 'val' was not declared in this scope
  258.              s2.insert(mt(t.se,val,1));
  259.                                ^~~
  260. a.cpp:62:17: error: 'set1' was not declared in this scope
  261.                  set1.insert({-nw_len,l});
  262.                  ^~~~
  263. a.cpp:62:17: note: suggested alternative: 's1'
  264.                  set1.insert({-nw_len,l});
  265.                  ^~~~
  266.                  s1
  267. a.cpp:63:17: error: 'set2' was not declared in this scope
  268.                  set2.insert(mt(l,nw_len,0));
  269.                  ^~~~
  270. a.cpp:63:17: note: suggested alternative: 's2'
  271.                  set2.insert(mt(l,nw_len,0));
  272.                  ^~~~
  273.                  s2
  274. a.cpp:72:13: error: 'tie' was not declared in this scope
  275.              tie(l, sz, fl) = *t;
  276.              ^~~
  277. a.cpp:82:39: error: 'r' was not declared in this scope
  278.                      s1.erase({t -> r, r -> l});
  279.                                        ^
  280. 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>)'
  281.                      s1.erase({t -> r, r -> l});
  282.                                               ^
  283. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  284.                  from a.cpp:3:
  285. 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> >]'
  286.        erase(const_iterator __position)
  287.        ^~~~~
  288. 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> >'}
  289. 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>]'
  290.        erase(const key_type& __x)
  291.        ^~~~~
  292. 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>&'}
  293. 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> >]'
  294.        erase(const_iterator __first, const_iterator __last)
  295.        ^~~~~
  296. 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
  297. a.cpp:96:21: error: 'set2' was not declared in this scope
  298.                  t = set2.lower_bound({ans[-v], -1, -1});
  299.                      ^~~~
  300. a.cpp:96:21: note: suggested alternative: 's2'
  301.                  t = set2.lower_bound({ans[-v], -1, -1});
  302.                      ^~~~
  303.                      s2
  304.  
  305. D:\programming\test>g++ -o a a.cpp
  306. a.cpp: In function 'int main()':
  307. a.cpp:56:16: error: 't' was not declared in this scope
  308.     s2.erase(mt(t.se,t.fi,0));
  309.                 ^
  310. a.cpp:56:13: error: 'mt' was not declared in this scope
  311.     s2.erase(mt(t.se,t.fi,0));
  312.              ^~
  313. a.cpp:56:13: note: suggested alternative: 'm'
  314.     s2.erase(mt(t.se,t.fi,0));
  315.              ^~
  316.              m
  317. a.cpp:57:31: error: 'val' was not declared in this scope
  318.              s2.insert(mt(t.se,val,1));
  319.                                ^~~
  320. a.cpp:62:17: error: 'set1' was not declared in this scope
  321.                  set1.insert({-nw_len,l});
  322.                  ^~~~
  323. a.cpp:62:17: note: suggested alternative: 's1'
  324.                  set1.insert({-nw_len,l});
  325.                  ^~~~
  326.                  s1
  327. a.cpp:63:17: error: 'set2' was not declared in this scope
  328.                  set2.insert(mt(l,nw_len,0));
  329.                  ^~~~
  330. a.cpp:63:17: note: suggested alternative: 's2'
  331.                  set2.insert(mt(l,nw_len,0));
  332.                  ^~~~
  333.                  s2
  334. a.cpp:72:13: error: 'tie' was not declared in this scope
  335.              tie(l, sz, fl) = *t;
  336.              ^~~
  337. a.cpp:82:39: error: 'r' was not declared in this scope
  338.                      s1.erase({t -> r, r -> l});
  339.                                        ^
  340. 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>)'
  341.                      s1.erase({t -> r, r -> l});
  342.                                               ^
  343. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  344.                  from a.cpp:3:
  345. 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> >]'
  346.        erase(const_iterator __position)
  347.        ^~~~~
  348. 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> >'}
  349. 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>]'
  350.        erase(const key_type& __x)
  351.        ^~~~~
  352. 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>&'}
  353. 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> >]'
  354.        erase(const_iterator __first, const_iterator __last)
  355.        ^~~~~
  356. 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
  357.  
  358. D:\programming\test>g++ -o a a.cpp
  359. a.cpp: In function 'int main()':
  360. a.cpp:56:16: error: 't' was not declared in this scope
  361.     s2.erase(mt(t.se,t.fi,0));
  362.                 ^
  363. a.cpp:56:13: error: 'mt' was not declared in this scope
  364.     s2.erase(mt(t.se,t.fi,0));
  365.              ^~
  366. a.cpp:56:13: note: suggested alternative: 'm'
  367.     s2.erase(mt(t.se,t.fi,0));
  368.              ^~
  369.              m
  370. a.cpp:57:31: error: 'val' was not declared in this scope
  371.              s2.insert(mt(t.se,val,1));
  372.                                ^~~
  373. a.cpp:72:13: error: 'tie' was not declared in this scope
  374.              tie(l, sz, fl) = *t;
  375.              ^~~
  376. a.cpp:82:39: error: 'r' was not declared in this scope
  377.                      s1.erase({t -> r, r -> l});
  378.                                        ^
  379. 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>)'
  380.                      s1.erase({t -> r, r -> l});
  381.                                               ^
  382. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  383.                  from a.cpp:3:
  384. 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> >]'
  385.        erase(const_iterator __position)
  386.        ^~~~~
  387. 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> >'}
  388. 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>]'
  389.        erase(const key_type& __x)
  390.        ^~~~~
  391. 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>&'}
  392. 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> >]'
  393.        erase(const_iterator __first, const_iterator __last)
  394.        ^~~~~
  395. 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
  396.  
  397. D:\programming\test>g++ -o a a.cpp
  398. a.cpp: In function 'int main()':
  399. a.cpp:56:16: error: 't' was not declared in this scope
  400.     s2.erase(mt(t.se,t.fi,0));
  401.                 ^
  402. a.cpp:56:13: error: 'mt' was not declared in this scope
  403.     s2.erase(mt(t.se,t.fi,0));
  404.              ^~
  405. a.cpp:56:13: note: suggested alternative: 'm'
  406.     s2.erase(mt(t.se,t.fi,0));
  407.              ^~
  408.              m
  409. a.cpp:57:31: error: 'val' was not declared in this scope
  410.              s2.insert(mt(t.se,val,1));
  411.                                ^~~
  412. a.cpp:72:13: error: 'tie' was not declared in this scope
  413.              tie(l, sz, fl) = *t;
  414.              ^~~
  415. a.cpp:82:39: error: 'r' was not declared in this scope
  416.                      s1.erase({t -> r, r -> l});
  417.                                        ^
  418. 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>)'
  419.                      s1.erase({t -> r, r -> l});
  420.                                               ^
  421. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  422.                  from a.cpp:3:
  423. 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> >]'
  424.        erase(const_iterator __position)
  425.        ^~~~~
  426. 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> >'}
  427. 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>]'
  428.        erase(const key_type& __x)
  429.        ^~~~~
  430. 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>&'}
  431. 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> >]'
  432.        erase(const_iterator __first, const_iterator __last)
  433.        ^~~~~
  434. 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
  435.  
  436. D:\programming\test>g++ -o a a.cpp
  437. a.cpp: In function 'int main()':
  438. a.cpp:56:16: error: 't' was not declared in this scope
  439.     s2.erase(mt(t.se,t.fi,0));
  440.                 ^
  441. a.cpp:56:13: error: 'mt' was not declared in this scope
  442.     s2.erase(mt(t.se,t.fi,0));
  443.              ^~
  444. a.cpp:56:13: note: suggested alternative: 'm'
  445.     s2.erase(mt(t.se,t.fi,0));
  446.              ^~
  447.              m
  448. a.cpp:57:31: error: 'val' was not declared in this scope
  449.              s2.insert(mt(t.se,val,1));
  450.                                ^~~
  451. a.cpp:72:13: error: 'tie' was not declared in this scope
  452.              tie(l, sz, fl) = *t;
  453.              ^~~
  454.  
  455. D:\programming\test>g++ -o a a.cpp
  456. a.cpp: In function 'int main()':
  457. a.cpp:56:14: error: 't' was not declared in this scope
  458.     s2.erase({t.second, t.fi, 0});
  459.               ^
  460. a.cpp:56:32: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  461.     s2.erase({t.second, t.fi, 0});
  462.                                 ^
  463. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  464.                  from a.cpp:3:
  465. 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>]'
  466.        erase(const_iterator __position)
  467.        ^~~~~
  468. 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>'}
  469. 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]'
  470.        erase(const key_type& __x)
  471.        ^~~~~
  472. 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&'}
  473. 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>]'
  474.        erase(const_iterator __first, const_iterator __last)
  475.        ^~~~~
  476. 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
  477. a.cpp:57:34: error: 'val' was not declared in this scope
  478.              s2.insert({t.second, val, 1});
  479.                                   ^~~
  480. a.cpp:57:41: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  481.              s2.insert({t.second, val, 1});
  482.                                          ^
  483. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  484.                  from a.cpp:3:
  485. 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]'
  486.        insert(const value_type& __x)
  487.        ^~~~~~
  488. 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&'}
  489. 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]'
  490.        insert(value_type&& __x)
  491.        ^~~~~~
  492. 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&&'}
  493. 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]'
  494.        insert(const_iterator __position, const value_type& __x)
  495.        ^~~~~~
  496. 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
  497. 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]'
  498.        insert(const_iterator __position, value_type&& __x)
  499.        ^~~~~~
  500. 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
  501. 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>]'
  502.   insert(_InputIterator __first, _InputIterator __last)
  503.   ^~~~~~
  504. 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:
  505. a.cpp:57:41: note:   candidate expects 2 arguments, 1 provided
  506.              s2.insert({t.second, val, 1});
  507.                                          ^
  508. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  509.                  from a.cpp:3:
  510. 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>]'
  511.        insert(initializer_list<value_type> __l)
  512.        ^~~~~~
  513. 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>'
  514. a.cpp:72:13: error: 'tie' was not declared in this scope
  515.              tie(l, sz, fl) = *t;
  516.              ^~~
  517.  
  518. D:\programming\test>g++ -o a a.cpp
  519. a.cpp: In function 'int main()':
  520. a.cpp:56:14: error: 't' was not declared in this scope
  521.     s2.erase({t.second, t.fi, 0});
  522.               ^
  523. a.cpp:56:32: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  524.     s2.erase({t.second, t.fi, 0});
  525.                                 ^
  526. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  527.                  from a.cpp:3:
  528. 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>]'
  529.        erase(const_iterator __position)
  530.        ^~~~~
  531. 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>'}
  532. 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]'
  533.        erase(const key_type& __x)
  534.        ^~~~~
  535. 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&'}
  536. 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>]'
  537.        erase(const_iterator __first, const_iterator __last)
  538.        ^~~~~
  539. 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
  540. a.cpp:57:34: error: 'val' was not declared in this scope
  541.              s2.insert({t.second, val, 1});
  542.                                   ^~~
  543. a.cpp:57:41: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  544.              s2.insert({t.second, val, 1});
  545.                                          ^
  546. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  547.                  from a.cpp:3:
  548. 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]'
  549.        insert(const value_type& __x)
  550.        ^~~~~~
  551. 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&'}
  552. 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]'
  553.        insert(value_type&& __x)
  554.        ^~~~~~
  555. 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&&'}
  556. 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]'
  557.        insert(const_iterator __position, const value_type& __x)
  558.        ^~~~~~
  559. 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
  560. 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]'
  561.        insert(const_iterator __position, value_type&& __x)
  562.        ^~~~~~
  563. 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
  564. 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>]'
  565.   insert(_InputIterator __first, _InputIterator __last)
  566.   ^~~~~~
  567. 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:
  568. a.cpp:57:41: note:   candidate expects 2 arguments, 1 provided
  569.              s2.insert({t.second, val, 1});
  570.                                          ^
  571. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  572.                  from a.cpp:3:
  573. 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>]'
  574.        insert(initializer_list<value_type> __l)
  575.        ^~~~~~
  576. 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>'
  577. a.cpp:72:13: error: 'tie' was not declared in this scope
  578.              tie(l, sz, fl) = *t;
  579.              ^~~
  580.  
  581. D:\programming\test>g++ -o a a.cpp
  582. a.cpp: In function 'int main()':
  583. a.cpp:56:14: error: 't' was not declared in this scope
  584.     s2.erase({t.second, t.first, 0});
  585.               ^
  586. a.cpp:56:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  587.     s2.erase({t.second, t.first, 0});
  588.                                    ^
  589. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  590.                  from a.cpp:3:
  591. 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>]'
  592.        erase(const_iterator __position)
  593.        ^~~~~
  594. 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>'}
  595. 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]'
  596.        erase(const key_type& __x)
  597.        ^~~~~
  598. 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&'}
  599. 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>]'
  600.        erase(const_iterator __first, const_iterator __last)
  601.        ^~~~~
  602. 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
  603. a.cpp:57:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  604.              s2.insert({t.second, v, 1});
  605.                                        ^
  606. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  607.                  from a.cpp:3:
  608. 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]'
  609.        insert(const value_type& __x)
  610.        ^~~~~~
  611. 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&'}
  612. 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]'
  613.        insert(value_type&& __x)
  614.        ^~~~~~
  615. 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&&'}
  616. 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]'
  617.        insert(const_iterator __position, const value_type& __x)
  618.        ^~~~~~
  619. 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
  620. 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]'
  621.        insert(const_iterator __position, value_type&& __x)
  622.        ^~~~~~
  623. 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
  624. 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>]'
  625.   insert(_InputIterator __first, _InputIterator __last)
  626.   ^~~~~~
  627. 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:
  628. a.cpp:57:39: note:   candidate expects 2 arguments, 1 provided
  629.              s2.insert({t.second, v, 1});
  630.                                        ^
  631. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  632.                  from a.cpp:3:
  633. 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>]'
  634.        insert(initializer_list<value_type> __l)
  635.        ^~~~~~
  636. 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>'
  637. a.cpp:58:23: error: 'val' was not declared in this scope
  638.              if(t.fi - val > 0)
  639.                        ^~~
  640. a.cpp:72:13: error: 'tie' was not declared in this scope
  641.              tie(l, sz, fl) = *t;
  642.              ^~~
  643.  
  644. D:\programming\test>g++ -o a a.cpp
  645. a.cpp: In function 'int main()':
  646. a.cpp:57:14: error: 't' was not declared in this scope
  647.     s2.erase({t.second, t.first, 0});
  648.               ^
  649. a.cpp:57:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  650.     s2.erase({t.second, t.first, 0});
  651.                                    ^
  652. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  653.                  from a.cpp:3:
  654. 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>]'
  655.        erase(const_iterator __position)
  656.        ^~~~~
  657. 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>'}
  658. 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]'
  659.        erase(const key_type& __x)
  660.        ^~~~~
  661. 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&'}
  662. 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>]'
  663.        erase(const_iterator __first, const_iterator __last)
  664.        ^~~~~
  665. 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
  666. a.cpp:58:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  667.              s2.insert({t.second, v, 1});
  668.                                        ^
  669. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  670.                  from a.cpp:3:
  671. 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]'
  672.        insert(const value_type& __x)
  673.        ^~~~~~
  674. 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&'}
  675. 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]'
  676.        insert(value_type&& __x)
  677.        ^~~~~~
  678. 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&&'}
  679. 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]'
  680.        insert(const_iterator __position, const value_type& __x)
  681.        ^~~~~~
  682. 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
  683. 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]'
  684.        insert(const_iterator __position, value_type&& __x)
  685.        ^~~~~~
  686. 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
  687. 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>]'
  688.   insert(_InputIterator __first, _InputIterator __last)
  689.   ^~~~~~
  690. 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:
  691. a.cpp:58:39: note:   candidate expects 2 arguments, 1 provided
  692.              s2.insert({t.second, v, 1});
  693.                                        ^
  694. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  695.                  from a.cpp:3:
  696. 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>]'
  697.        insert(initializer_list<value_type> __l)
  698.        ^~~~~~
  699. 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>'
  700. a.cpp:73:31: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&, int&>' and 'const S')
  701.              tie(l, sz, fl) = *t;
  702.                                ^
  703. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
  704.                  from a.cpp:4:
  705. 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&}]'
  706.        operator=(const tuple& __in)
  707.        ^~~~~~~~
  708. 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&>&'
  709. 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&}]'
  710.        operator=(tuple&& __in)
  711.        ^~~~~~~~
  712. 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&>&&'
  713. 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&}]'
  714.          operator=(const tuple<_UElements...>& __in)
  715.          ^~~~~~~~
  716. C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note:   template argument deduction/substitution failed:
  717. a.cpp:73:31: note:   'const S' is not derived from 'const std::tuple<_Tps ...>'
  718.              tie(l, sz, fl) = *t;
  719.                                ^
  720. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
  721.                  from a.cpp:4:
  722. 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&}]'
  723.          operator=(tuple<_UElements...>&& __in)
  724.          ^~~~~~~~
  725. C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note:   template argument deduction/substitution failed:
  726. a.cpp:73:31: note:   types 'std::tuple<_Tps ...>' and 'const S' have incompatible cv-qualifiers
  727.              tie(l, sz, fl) = *t;
  728.                                ^
  729.  
  730. D:\programming\test>g++ -o a a.cpp
  731. a.cpp:11:30: error: return type specification for constructor invalid
  732.   int S(int _l, int _r, int _x)
  733.                               ^
  734. a.cpp: In function 'int main()':
  735. a.cpp:63:14: error: 't' was not declared in this scope
  736.     s2.erase({t.second, t.first, 0});
  737.               ^
  738. a.cpp:63:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  739.     s2.erase({t.second, t.first, 0});
  740.                                    ^
  741. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  742.                  from a.cpp:3:
  743. 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>]'
  744.        erase(const_iterator __position)
  745.        ^~~~~
  746. 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>'}
  747. 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]'
  748.        erase(const key_type& __x)
  749.        ^~~~~
  750. 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&'}
  751. 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>]'
  752.        erase(const_iterator __first, const_iterator __last)
  753.        ^~~~~
  754. 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
  755. a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  756.              s2.insert({t.second, v, 1});
  757.                                        ^
  758. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  759.                  from a.cpp:3:
  760. 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]'
  761.        insert(const value_type& __x)
  762.        ^~~~~~
  763. 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&'}
  764. 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]'
  765.        insert(value_type&& __x)
  766.        ^~~~~~
  767. 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&&'}
  768. 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]'
  769.        insert(const_iterator __position, const value_type& __x)
  770.        ^~~~~~
  771. 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
  772. 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]'
  773.        insert(const_iterator __position, value_type&& __x)
  774.        ^~~~~~
  775. 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
  776. 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>]'
  777.   insert(_InputIterator __first, _InputIterator __last)
  778.   ^~~~~~
  779. 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:
  780. a.cpp:64:39: note:   candidate expects 2 arguments, 1 provided
  781.              s2.insert({t.second, v, 1});
  782.                                        ^
  783. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  784.                  from a.cpp:3:
  785. 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>]'
  786.        insert(initializer_list<value_type> __l)
  787.        ^~~~~~
  788. 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>'
  789. a.cpp:79:31: error: no match for 'operator=' (operand types are 'std::tuple<int&, int&, int&>' and 'const S')
  790.              tie(l, sz, fl) = *t;
  791.                                ^
  792. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
  793.                  from a.cpp:4:
  794. 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&}]'
  795.        operator=(const tuple& __in)
  796.        ^~~~~~~~
  797. 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&>&'
  798. 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&}]'
  799.        operator=(tuple&& __in)
  800.        ^~~~~~~~
  801. 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&>&&'
  802. 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&}]'
  803.          operator=(const tuple<_UElements...>& __in)
  804.          ^~~~~~~~
  805. C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:853:9: note:   template argument deduction/substitution failed:
  806. a.cpp:79:31: note:   'const S' is not derived from 'const std::tuple<_Tps ...>'
  807.              tie(l, sz, fl) = *t;
  808.                                ^
  809. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/functional:54,
  810.                  from a.cpp:4:
  811. 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&}]'
  812.          operator=(tuple<_UElements...>&& __in)
  813.          ^~~~~~~~
  814. C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/tuple:863:9: note:   template argument deduction/substitution failed:
  815. a.cpp:79:31: note:   types 'std::tuple<_Tps ...>' and 'const S' have incompatible cv-qualifiers
  816.              tie(l, sz, fl) = *t;
  817.                                ^
  818.  
  819. D:\programming\test>g++ -o a a.cpp
  820. a.cpp:11:30: error: return type specification for constructor invalid
  821.   int S(int _l, int _r, int _x)
  822.                               ^
  823. a.cpp: In function 'int main()':
  824. a.cpp:63:14: error: 't' was not declared in this scope
  825.     s2.erase({t.second, t.first, 0});
  826.               ^
  827. a.cpp:63:35: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::erase(<brace-enclosed initializer list>)'
  828.     s2.erase({t.second, t.first, 0});
  829.                                    ^
  830. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  831.                  from a.cpp:3:
  832. 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>]'
  833.        erase(const_iterator __position)
  834.        ^~~~~
  835. 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>'}
  836. 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]'
  837.        erase(const key_type& __x)
  838.        ^~~~~
  839. 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&'}
  840. 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>]'
  841.        erase(const_iterator __first, const_iterator __last)
  842.        ^~~~~
  843. 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
  844. a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  845.              s2.insert({t.second, v, 1});
  846.                                        ^
  847. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  848.                  from a.cpp:3:
  849. 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]'
  850.        insert(const value_type& __x)
  851.        ^~~~~~
  852. 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&'}
  853. 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]'
  854.        insert(value_type&& __x)
  855.        ^~~~~~
  856. 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&&'}
  857. 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]'
  858.        insert(const_iterator __position, const value_type& __x)
  859.        ^~~~~~
  860. 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
  861. 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]'
  862.        insert(const_iterator __position, value_type&& __x)
  863.        ^~~~~~
  864. 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
  865. 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>]'
  866.   insert(_InputIterator __first, _InputIterator __last)
  867.   ^~~~~~
  868. 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:
  869. a.cpp:64:39: note:   candidate expects 2 arguments, 1 provided
  870.              s2.insert({t.second, v, 1});
  871.                                        ^
  872. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  873.                  from a.cpp:3:
  874. 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>]'
  875.        insert(initializer_list<value_type> __l)
  876.        ^~~~~~
  877. 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>'
  878.  
  879. D:\programming\test>g++ -o a a.cpp
  880. a.cpp:11:30: error: return type specification for constructor invalid
  881.   int S(int _l, int _r, int _x)
  882.                               ^
  883. a.cpp: In function 'int main()':
  884. a.cpp:63:15: error: 't' was not declared in this scope
  885.     s2.erase(S(t.second, t.first, 0));
  886.                ^
  887. a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  888.              s2.insert({t.second, v, 1});
  889.                                        ^
  890. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  891.                  from a.cpp:3:
  892. 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]'
  893.        insert(const value_type& __x)
  894.        ^~~~~~
  895. 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&'}
  896. 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]'
  897.        insert(value_type&& __x)
  898.        ^~~~~~
  899. 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&&'}
  900. 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]'
  901.        insert(const_iterator __position, const value_type& __x)
  902.        ^~~~~~
  903. 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
  904. 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]'
  905.        insert(const_iterator __position, value_type&& __x)
  906.        ^~~~~~
  907. 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
  908. 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>]'
  909.   insert(_InputIterator __first, _InputIterator __last)
  910.   ^~~~~~
  911. 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:
  912. a.cpp:64:39: note:   candidate expects 2 arguments, 1 provided
  913.              s2.insert({t.second, v, 1});
  914.                                        ^
  915. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  916.                  from a.cpp:3:
  917. 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>]'
  918.        insert(initializer_list<value_type> __l)
  919.        ^~~~~~
  920. 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>'
  921. a.cpp:69:39: error: no matching function for call to 'S::S(int, int&)'
  922.                  s1.insert(S(-nw_len, l));
  923.                                        ^
  924. a.cpp:11:6: note: candidate: 'S::S(int, int, int)'
  925.   int S(int _l, int _r, int _x)
  926.       ^
  927. a.cpp:11:6: note:   candidate expects 3 arguments, 2 provided
  928. a.cpp:8:8: note: candidate: 'constexpr S::S(const S&)'
  929.  struct S
  930.         ^
  931. a.cpp:8:8: note:   candidate expects 1 argument, 2 provided
  932. a.cpp:8:8: note: candidate: 'constexpr S::S(S&&)'
  933. a.cpp:8:8: note:   candidate expects 1 argument, 2 provided
  934.  
  935. D:\programming\test>g++ -o a a.cpp
  936. a.cpp:11:30: error: return type specification for constructor invalid
  937.   int S(int _l, int _r, int _x)
  938.                               ^
  939. a.cpp: In function 'int main()':
  940. a.cpp:63:15: error: 't' was not declared in this scope
  941.     s2.erase(S(t.second, t.first, 0));
  942.                ^
  943. a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  944.              s2.insert({t.second, v, 1});
  945.                                        ^
  946. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  947.                  from a.cpp:3:
  948. 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]'
  949.        insert(const value_type& __x)
  950.        ^~~~~~
  951. 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&'}
  952. 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]'
  953.        insert(value_type&& __x)
  954.        ^~~~~~
  955. 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&&'}
  956. 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]'
  957.        insert(const_iterator __position, const value_type& __x)
  958.        ^~~~~~
  959. 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
  960. 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]'
  961.        insert(const_iterator __position, value_type&& __x)
  962.        ^~~~~~
  963. 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
  964. 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>]'
  965.   insert(_InputIterator __first, _InputIterator __last)
  966.   ^~~~~~
  967. 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:
  968. a.cpp:64:39: note:   candidate expects 2 arguments, 1 provided
  969.              s2.insert({t.second, v, 1});
  970.                                        ^
  971. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  972.                  from a.cpp:3:
  973. 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>]'
  974.        insert(initializer_list<value_type> __l)
  975.        ^~~~~~
  976. 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>'
  977. a.cpp:69:39: error: no matching function for call to 'S::S(int, int&)'
  978.                  s1.insert(S(-nw_len, l));
  979.                                        ^
  980. a.cpp:11:6: note: candidate: 'S::S(int, int, int)'
  981.   int S(int _l, int _r, int _x)
  982.       ^
  983. a.cpp:11:6: note:   candidate expects 3 arguments, 2 provided
  984. a.cpp:8:8: note: candidate: 'constexpr S::S(const S&)'
  985.  struct S
  986.         ^
  987. a.cpp:8:8: note:   candidate expects 1 argument, 2 provided
  988. a.cpp:8:8: note: candidate: 'constexpr S::S(S&&)'
  989. a.cpp:8:8: note:   candidate expects 1 argument, 2 provided
  990.  
  991. D:\programming\test>g++ -o a a.cpp
  992. a.cpp:11:30: error: return type specification for constructor invalid
  993.   int S(int _l, int _r, int _x)
  994.                               ^
  995. a.cpp: In function 'int main()':
  996. a.cpp:63:15: error: 't' was not declared in this scope
  997.     s2.erase(S(t.second, t.first, 0));
  998.                ^
  999. a.cpp:64:39: error: no matching function for call to 'std::set<S, bool (*)(S, S)>::insert(<brace-enclosed initializer list>)'
  1000.              s2.insert({t.second, v, 1});
  1001.                                        ^
  1002. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  1003.                  from a.cpp:3:
  1004. 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]'
  1005.        insert(const value_type& __x)
  1006.        ^~~~~~
  1007. 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&'}
  1008. 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]'
  1009.        insert(value_type&& __x)
  1010.        ^~~~~~
  1011. 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&&'}
  1012. 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]'
  1013.        insert(const_iterator __position, const value_type& __x)
  1014.        ^~~~~~
  1015. 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
  1016. 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]'
  1017.        insert(const_iterator __position, value_type&& __x)
  1018.        ^~~~~~
  1019. 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
  1020. 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>]'
  1021.   insert(_InputIterator __first, _InputIterator __last)
  1022.   ^~~~~~
  1023. 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:
  1024. a.cpp:64:39: note:   candidate expects 2 arguments, 1 provided
  1025.              s2.insert({t.second, v, 1});
  1026.                                        ^
  1027. In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/set:61,
  1028.                  from a.cpp:3:
  1029. 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>]'
  1030.        insert(initializer_list<value_type> __l)
  1031.        ^~~~~~
  1032. 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>'
  1033.  
  1034. D:\programming\test>g++ -o a a.cpp
  1035. a.cpp:11:30: error: return type specification for constructor invalid
  1036.   int S(int _l, int _r, int _x)
  1037.                               ^
  1038. a.cpp: In function 'int main()':
  1039. a.cpp:63:15: error: 't' was not declared in this scope
  1040.     s2.erase(S(t.second, t.first, 0));
  1041.                ^
  1042.  
  1043. D:\programming\test>g++ -o a a.cpp
  1044. a.cpp:11:30: error: return type specification for constructor invalid
  1045.   int S(int _l, int _r, int _x)
  1046.                               ^
  1047. a.cpp: In function 'int main()':
  1048. a.cpp:65:16: error: 't' was not declared in this scope
  1049.              if(t.fi - v > 0)
  1050.                 ^
  1051.  
  1052. D:\programming\test>g++ -o a a.cpp
  1053. a.cpp: In function 'int main()':
  1054. a.cpp:67:30: error: 't' was not declared in this scope
  1055.                  int nw_len = t.fi - v;
  1056.                               ^
  1057.  
  1058. D:\programming\test>g++ -o a a.cpp
  1059.  
  1060. D:\programming\test>a
  1061. 3
  1062. 1 2 1
  1063.  
  1064. D:\programming\test>a
  1065. 6 8
  1066. 2
  1067. 3
  1068. -1
  1069. 3
  1070. -1 3
  1071. -16 8
  1072. -1-12
  1073. -13
  1074. -1
  1075. D:\programming\test>-1
  1076. "-1" не является внутренней или внешней
  1077. командой, исполняемой программой или пакетным файлом.
  1078.  
  1079. D:\programming\test>3
  1080. 3
  1081. -5
  1082. 2
  1083. 2
  1084. 4
  1085. 4
  1086. D:\programming\test>a
  1087. 6 8
  1088. 2
  1089. 3
  1090. -1-1
  1091. 3
  1092. -13
  1093. -1-5
  1094. 2
  1095. -12
  1096. -1
  1097. D:\programming\test>g++ -o a a.cpp
  1098.  
  1099. D:\programming\test>a
  1100. 6 8
  1101. 2
  1102. 1
  1103. 3
  1104. -1
  1105. 6 8
  1106. -1
  1107. -1
  1108.  
  1109.  
  1110.  
  1111. r
  1112.  
  1113. D:\programming\test>g++ -o a a.cpp
  1114.  
  1115. D:\programming\test>g++ -o a a.cpp
  1116.  
  1117. D:\programming\test>a
  1118. 6 8
  1119. 2
  1120. 1
  1121. 3
  1122. 3
  1123. -1
  1124. 3
  1125. 1
  1126. t
  1127.  
  1128. D:\programming\test>g++ -o a a.cpp
  1129. a.cpp: In function 'int main()':
  1130. a.cpp:66:4: error: 't' was not declared in this scope
  1131.     t.first *= -1;
  1132.     ^
  1133.  
  1134. D:\programming\test>g++ -o a a.cpp
  1135.  
  1136. D:\programming\test>a
  1137. 6 8
  1138. 2
  1139. -1
  1140. 3
  1141. -1
  1142. y
  1143.  
  1144. D:\programming\test>g++ -o a a.cpp
  1145.  
  1146. D:\programming\test>a
  1147. 6 8
  1148. 1
  1149. 1
  1150. 2
  1151. 2
  1152. 3
  1153. 4
  1154. 4
  1155. -1
  1156. 5
  1157. -1
  1158. 6
  1159. -1
  1160. 7
  1161. -1
  1162. 8
  1163. -1
  1164.  
  1165. D:\programming\test>a
  1166. 6 8
  1167. 2
  1168. 1
  1169. 3
  1170. 3
  1171. -1
  1172. 3
  1173. 1
  1174. 5
  1175. -1
  1176. 5
  1177. -1
  1178. 5
  1179. -1
  1180. 5
  1181. -1
  1182.  
  1183. D:\programming\test>g++ -o a a.cpp
  1184.  
  1185. D:\programming\test>a
  1186. 6 8
  1187. 2
  1188. 1
  1189. 3
  1190. 3
  1191. -1
  1192. 3
  1193. -1
  1194. 3
  1195. -1
  1196. -5
  1197. 2
  1198. 1
  1199. 2
  1200. -1
  1201.  
  1202. D:\programming\test>g++ -o a a.cpp
  1203.  
  1204. D:\programming\test>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement