foo.cc:1:1: error: stray '`' in program
```cpp
^
foo.cc:1:2: error: stray '`' in program
```cpp
^
foo.cc:1:3: error: stray '`' in program
```cpp
^
foo.cc:125:1: error: stray '`' in program
```
^
foo.cc:125:2: error: stray '`' in program
```
^
foo.cc:125:3: error: stray '`' in program
```
^
foo.cc:1:4: error: 'cpp' does not name a type
```cpp
^~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:62:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
__is_null_pointer(std::nullptr_t)
^
/usr/include/c++/7/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^~~~~~~~~~~~~~~~~
/usr/include/c++/7/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^~~~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:362:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:363:25: error: '_Size' was not declared in this scope
struct is_array<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:363:31: error: template argument 1 is invalid
struct is_array<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:561:42: error: 'nullptr_t' is not a member of 'std'
struct __is_null_pointer_helper<std::nullptr_t>
^~~~~~~~~
/usr/include/c++/7/type_traits:561:42: error: 'nullptr_t' is not a member of 'std'
/usr/include/c++/7/type_traits:561:51: error: template argument 1 is invalid
struct __is_null_pointer_helper<std::nullptr_t>
^
/usr/include/c++/7/type_traits:1464:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^~~~~~
/usr/include/c++/7/type_traits:1464:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1464:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^~~~~~
/usr/include/c++/7/type_traits:1464:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1464:61: error: template argument 1 is invalid
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
/usr/include/c++/7/type_traits:1464:61: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1469:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1469:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1469:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1469:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1469:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/include/c++/7/type_traits:1469:46: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1471:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1472:21: error: '_Size' was not declared in this scope
struct rank<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1472:27: error: template argument 1 is invalid
struct rank<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:1473:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1473:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1473:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1473:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1473:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/include/c++/7/type_traits:1473:65: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1477:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1477:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1477:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/include/c++/7/type_traits:1477:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1477:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/include/c++/7/type_traits:1477:65: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1482:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1482:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1482:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/include/c++/7/type_traits:1482:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1482:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/include/c++/7/type_traits:1482:46: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1484:47: error: 'std::size_t' has not been declared
template<typename _Tp, unsigned _Uint, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1485:23: error: '_Size' was not declared in this scope
struct extent<_Tp[_Size], _Uint>
^~~~~
/usr/include/c++/7/type_traits:1485:36: error: template argument 1 is invalid
struct extent<_Tp[_Size], _Uint>
^
/usr/include/c++/7/type_traits:1486:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1486:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1486:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1486:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1487:24: error: '_Size' was not declared in this scope
_Uint == 0 ? _Size : extent<_Tp,
^~~~~
/usr/include/c++/7/type_traits:1488:28: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/include/c++/7/type_traits:1488:28: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1493:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1493:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1493:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t,
^~~~~~
/usr/include/c++/7/type_traits:1493:37: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/type_traits:1495:31: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/include/c++/7/type_traits:1495:31: note: invalid template non-type parameter
/usr/include/c++/7/type_traits:1944:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1945:30: error: '_Size' was not declared in this scope
struct remove_extent<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1945:36: error: template argument 1 is invalid
struct remove_extent<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:1957:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/include/c++/7/type_traits:1958:35: error: '_Size' was not declared in this scope
struct remove_all_extents<_Tp[_Size]>
^~~~~
/usr/include/c++/7/type_traits:1958:41: error: template argument 1 is invalid
struct remove_all_extents<_Tp[_Size]>
^
/usr/include/c++/7/type_traits:2016:17: error: 'std::size_t' has not been declared
template<std::size_t _Len>
^~~~~~
/usr/include/c++/7/type_traits:2021:23: error: '_Len' was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/include/c++/7/type_traits:2036:17: error: 'std::size_t' has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/include/c++/7/type_traits:2036:35: error: 'std::size_t' has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/include/c++/7/type_traits:2037:48: error: '_Len' was not declared in this scope
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^~~~
/usr/include/c++/7/type_traits:2037:52: error: template argument 1 is invalid
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^
/usr/include/c++/7/type_traits:2042:23: error: '_Len' was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/include/c++/7/type_traits:2043:37: error: '_Align' was not declared in this scope
struct __attribute__((__aligned__((_Align)))) { } __align;
^~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/stl_pair.h:86:17: error: 'std::size_t' has not been declared
template<std::size_t...>
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:434:41: error: 'std::size_t' has not been declared
template<typename... _Args1, std::size_t... _Indexes1,
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:435:41: error: 'std::size_t' has not been declared
typename... _Args2, std::size_t... _Indexes2>
^~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:27: error: '_Indexes1' was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:27: note: suggested alternative: '_Index_tuple'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
_Index_tuple
/usr/include/c++/7/bits/stl_pair.h:437:36: error: expected parameter pack before '...'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/include/c++/7/bits/stl_pair.h:437:39: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
/usr/include/c++/7/bits/stl_pair.h:437:55: error: '_Indexes2' was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:437:55: note: suggested alternative: '_Index_tuple'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
_Index_tuple
/usr/include/c++/7/bits/stl_pair.h:437:64: error: expected parameter pack before '...'
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/include/c++/7/bits/stl_pair.h:437:67: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_types.h:116:67: error: 'ptrdiff_t' does not name a type
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_types.h:182:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_types.h:193:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:110:5: error: 'ptrdiff_t' does not name a type
ptrdiff_t
^~~~~~~~~
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:116:5: error: 'ptrdiff_t' does not name a type
ptrdiff_t
^~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_iterator.h:66:0,
from /usr/include/c++/7/bits/stl_algobase.h:67,
from /usr/include/c++/7/bits/stl_tree.h:63,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/ptr_traits.h:104:20: error: 'ptrdiff_t' was not declared in this scope
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^~~~~~~~~
/usr/include/c++/7/bits/ptr_traits.h:104:54: error: template argument 1 is invalid
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^
/usr/include/c++/7/bits/ptr_traits.h:130:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_tree.h:63:0,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/7/bits/stl_algobase.h:366:10: error: 'ptrdiff_t' does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:367:8: error: '_Num' was not declared in this scope
if (_Num)
^~~~
/usr/include/c++/7/bits/stl_algobase.h:367:8: note: suggested alternative: '_NEW'
if (_Num)
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h:369:22: error: '_Num' was not declared in this scope
return __result + _Num;
^~~~
/usr/include/c++/7/bits/stl_algobase.h:369:22: note: suggested alternative: '_NEW'
return __result + _Num;
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/7/bits/stl_algobase.h:568:10: error: 'ptrdiff_t' does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:569:8: error: '_Num' was not declared in this scope
if (_Num)
^~~~
/usr/include/c++/7/bits/stl_algobase.h:569:8: note: suggested alternative: '_NEW'
if (_Num)
^~~~
_NEW
/usr/include/c++/7/bits/stl_algobase.h:571:22: error: '_Num' was not declared in this scope
return __result - _Num;
^~~~
/usr/include/c++/7/bits/stl_algobase.h:571:22: note: suggested alternative: '_NEW'
return __result - _Num;
^~~~
_NEW
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new: At global scope:
/usr/include/c++/7/new:120:31: error: declaration of 'operator new' as non-function
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/include/c++/7/new:120:25: error: 'size_t' is not a member of 'std'
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/include/c++/7/new:120:25: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:122:33: error: declaration of 'operator new []' as non-function
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/include/c++/7/new:122:27: error: 'size_t' is not a member of 'std'
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/include/c++/7/new:122:27: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:134:25: error: declaration of 'operator new' as non-function
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:134:25: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:134:25: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:134:33: error: expected primary-expression before 'const'
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/include/c++/7/new:136:27: error: declaration of 'operator new []' as non-function
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:136:27: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:136:27: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:136:35: error: expected primary-expression before 'const'
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/include/c++/7/new:168:32: error: declaration of 'operator new' as non-function
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:168:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:168:32: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:168:40: error: expected primary-expression before 'void'
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
/usr/include/c++/7/new:170:34: error: declaration of 'operator new []' as non-function
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/include/c++/7/new:170:34: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/new:170:34: note: suggested alternative:
In file included from /usr/include/stdio.h:33:0,
from /usr/include/c++/7/cstdio:42,
from foo.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/new:170:42: error: expected primary-expression before 'void'
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/stl_tree.h:64,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/ext/new_allocator.h:44:14: error: 'std::size_t' has not been declared
using std::size_t;
^~~~~~
/usr/include/c++/7/ext/new_allocator.h:45:14: error: 'std::ptrdiff_t' has not been declared
using std::ptrdiff_t;
^~~~~~~~~
In file included from /usr/include/c++/7/ext/alloc_traits.h:36:0,
from /usr/include/c++/7/bits/stl_tree.h:67,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/bits/alloc_traits.h:404:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
using difference_type = std::ptrdiff_t;
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:407:30: error: 'size_t' in namespace 'std' does not name a type
using size_type = std::size_t;
^~~~~~
/usr/include/c++/7/bits/alloc_traits.h:435:37: error: 'size_type' has not been declared
allocate(allocator_type& __a, size_type __n)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:449:37: error: 'size_type' has not been declared
allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:461:52: error: 'size_type' has not been declared
deallocate(allocator_type& __a, pointer __p, size_type __n)
^~~~~~~~~
/usr/include/c++/7/bits/alloc_traits.h:494:14: error: 'size_type' does not name a type; did you mean 'true_type'?
static size_type
^~~~~~~~~
true_type
In file included from /usr/include/c++/7/bits/stl_tree.h:69:0,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/ext/aligned_buffer.h:59:42: error: invalid use of '::'
__aligned_membuf(std::nullptr_t) { }
^
/usr/include/c++/7/ext/aligned_buffer.h:59:42: error: expected ';' at end of member declaration
/usr/include/c++/7/ext/aligned_buffer.h:94:42: error: invalid use of '::'
__aligned_buffer(std::nullptr_t) { }
^
/usr/include/c++/7/ext/aligned_buffer.h:94:42: error: expected ';' at end of member declaration
In file included from /usr/include/c++/7/algorithm:60:0,
from foo.cc:5:
/usr/include/c++/7/utility:128:17: error: 'std::size_t' has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/include/c++/7/utility:129:12: error: no default argument for '_Tp'
struct tuple_element;
^~~~~~~~~~~~~
/usr/include/c++/7/utility:132:17: error: 'std::size_t' has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/include/c++/7/utility:133:54: error: '__i' was not declared in this scope
using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
^~~
/usr/include/c++/7/utility:133:54: note: suggested alternative: '__N'
using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
^~~
__N
/usr/include/c++/7/utility:133:62: error: template argument 1 is invalid
using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
^
/usr/include/c++/7/utility:135:17: error: 'std::size_t' has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/include/c++/7/utility:136:26: error: '__i' was not declared in this scope
struct tuple_element<__i, const _Tp>
^~~
/usr/include/c++/7/utility:136:26: note: suggested alternative: '__N'
struct tuple_element<__i, const _Tp>
^~~
__N
/usr/include/c++/7/utility:136:40: error: template argument 1 is invalid
struct tuple_element<__i, const _Tp>
^
/usr/include/c++/7/utility:141:17: error: 'std::size_t' has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/include/c++/7/utility:142:26: error: '__i' was not declared in this scope
struct tuple_element<__i, volatile _Tp>
^~~
/usr/include/c++/7/utility:142:26: note: suggested alternative: '__N'
struct tuple_element<__i, volatile _Tp>
^~~
__N
/usr/include/c++/7/utility:142:43: error: template argument 1 is invalid
struct tuple_element<__i, volatile _Tp>
^
/usr/include/c++/7/utility:147:17: error: 'std::size_t' has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/include/c++/7/utility:148:26: error: '__i' was not declared in this scope
struct tuple_element<__i, const volatile _Tp>
^~~
/usr/include/c++/7/utility:148:26: note: suggested alternative: '__N'
struct tuple_element<__i, const volatile _Tp>
^~~
__N
/usr/include/c++/7/utility:148:49: error: template argument 1 is invalid
struct tuple_element<__i, const volatile _Tp>
^
/usr/include/c++/7/utility:170:37: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, 2> { };
^~~~~~
/usr/include/c++/7/utility:170:37: note: suggested alternative: 'set'
: public integral_constant<std::size_t, 2> { };
^~~~~~
set
/usr/include/c++/7/utility:170:37: error: 'size_t' is not a member of 'std'
/usr/include/c++/7/utility:170:37: note: suggested alternative: 'set'
: public integral_constant<std::size_t, 2> { };
^~~~~~
set
/usr/include/c++/7/utility:170:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 2> { };
^
/usr/include/c++/7/utility:170:46: note: invalid template non-type parameter
/usr/include/c++/7/utility:182:17: error: 'std::size_t' has not been declared
template<std::size_t _Int>
^~~~~~
/usr/include/c++/7/utility:223:17: error: 'std::size_t' has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/include/c++/7/utility:224:38: error: '_Int' was not declared in this scope
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
/usr/include/c++/7/utility:224:38: note: suggested alternative: 'int'
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
int
/usr/include/c++/7/utility:224:64: error: template argument 1 is invalid
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~
/usr/include/c++/7/utility: In function 'constexpr int& std::get(std::pair<_Tp1, _Tp2>&)':
/usr/include/c++/7/utility:226:25: error: '_Int' was not declared in this scope
{ return __pair_get<_Int>::__get(__in); }
^~~~
/usr/include/c++/7/utility:226:25: note: suggested alternative: 'int'
{ return __pair_get<_Int>::__get(__in); }
^~~~
int
/usr/include/c++/7/utility:226:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__get(__in); }
^
/usr/include/c++/7/utility: At global scope:
/usr/include/c++/7/utility:228:17: error: 'std::size_t' has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/include/c++/7/utility:229:38: error: '_Int' was not declared in this scope
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
/usr/include/c++/7/utility:229:38: note: suggested alternative: 'int'
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
int
/usr/include/c++/7/utility:229:64: error: template argument 1 is invalid
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~
/usr/include/c++/7/utility: In function 'constexpr int&& std::get(std::pair<_Tp1, _Tp2>&&)':
/usr/include/c++/7/utility:231:25: error: '_Int' was not declared in this scope
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^~~~
/usr/include/c++/7/utility:231:25: note: suggested alternative: 'int'
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^~~~
int
/usr/include/c++/7/utility:231:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^
/usr/include/c++/7/utility: At global scope:
/usr/include/c++/7/utility:233:17: error: 'std::size_t' has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/include/c++/7/utility:234:44: error: '_Int' was not declared in this scope
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
/usr/include/c++/7/utility:234:44: note: suggested alternative: 'int'
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
int
/usr/include/c++/7/utility:234:70: error: template argument 1 is invalid
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~
/usr/include/c++/7/utility: In function 'constexpr const int& std::get(const std::pair<_Tp1, _Tp2>&)':
/usr/include/c++/7/utility:236:25: error: '_Int' was not declared in this scope
{ return __pair_get<_Int>::__const_get(__in); }
^~~~
/usr/include/c++/7/utility:236:25: note: suggested alternative: 'int'
{ return __pair_get<_Int>::__const_get(__in); }
^~~~
int
/usr/include/c++/7/utility:236:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__const_get(__in); }
^
/usr/include/c++/7/utility: At global scope:
/usr/include/c++/7/utility:289:43: note: invalid template non-type parameter
struct _Itup_cat<_Index_tuple<_Ind1...>, _Index_tuple<_Ind2...>>
^
/usr/include/c++/7/utility:289:64: note: invalid template non-type parameter
struct _Itup_cat<_Index_tuple<_Ind1...>, _Index_tuple<_Ind2...>>
^~~
/usr/include/c++/7/utility:289:67: error: template argument 1 is invalid
struct _Itup_cat<_Index_tuple<_Ind1...>, _Index_tuple<_Ind2...>>
^~
/usr/include/c++/7/utility:289:67: error: template argument 2 is invalid
/usr/include/c++/7/utility:304:29: note: invalid template non-type parameter
typedef _Index_tuple<0> __type;
^
In file included from /usr/include/c++/7/bits/stl_algo.h:62:0,
from /usr/include/c++/7/algorithm:62,
from foo.cc:5:
/usr/include/c++/7/bits/stl_tempbuf.h: In function 'std::pair<_Tp*, long int> std::get_temporary_buffer(ptrdiff_t)':
/usr/include/c++/7/bits/stl_tempbuf.h:95:20: error: too many arguments to function 'void* operator new(long unsigned int)'
std::nothrow));
^
In file included from /usr/include/c++/7/bits/stl_tree.h:67:0,
from /usr/include/c++/7/set:60,
from foo.cc:3:
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >':
/usr/include/c++/7/bits/stl_set.h:119:22: required from 'class std::set<std::pair<int, int> >'
foo.cc:18:10: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<std::pair<int, int> > >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<std::pair<int, int> > >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::_Base_type {aka std::allocator_traits<std::allocator<std::pair<int, int> > >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::_Base_type {aka struct std::allocator_traits<std::allocator<std::pair<int, int> > >}'
using _Base_type::max_size;
^~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >':
/usr/include/c++/7/bits/stl_tree.h:650:24: required from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_destroy_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]'
/usr/include/c++/7/bits/stl_tree.h:658:17: required from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_drop_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]'
/usr/include/c++/7/bits/stl_tree.h:1858:16: required from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type) [with _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]'
/usr/include/c++/7/bits/stl_tree.h:949:17: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
/usr/include/c++/7/bits/stl_set.h:157:7: required from here
/usr/include/c++/7/ext/alloc_traits.h:61:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >'
typedef typename _Base_type::size_type size_type;
^~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:62:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >'
typedef typename _Base_type::difference_type difference_type;
^~~~~~~~~~~~~~~
/usr/include/c++/7/ext/alloc_traits.h:70:23: error: no members matching '__gnu_cxx::__alloc_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >::_Base_type {aka std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >}::max_size' in '__gnu_cxx::__alloc_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >::_Base_type {aka struct std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<int, int> > > >}'
using _Base_type::max_size;
^~~~~~~~
In file included from /usr/include/c++/7/set:60:0,
from foo.cc:3:
/usr/include/c++/7/bits/stl_tree.h: In instantiation of 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, _Args&& ...) [with _Args = {std::pair<int, int>}; _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]':
/usr/include/c++/7/bits/stl_tree.h:643:21: required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {std::pair<int, int>}; _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]'
/usr/include/c++/7/bits/stl_tree.h:556:62: required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Alloc_node::operator()(_Arg&&) const [with _Arg = std::pair<int, int>; _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<int, int> >*]'
/usr/include/c++/7/bits/stl_tree.h:1753:29: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, _Arg&&, _NodeGen&) [with _Arg = std::pair<int, int>; _NodeGen = std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int> >, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::_Alloc_node; _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<int, int> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]'
/usr/include/c++/7/bits/stl_tree.h:2096:26: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = std::pair<int, int>; _Key = std::pair<int, int>; _Val = std::pair<int, int>; _KeyOfValue = std::_Identity<std::pair<int, int> >; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
/usr/include/c++/7/bits/stl_set.h:510:48: required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _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 = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<int, int>]'
foo.cc:93:18: required from here
/usr/include/c++/7/bits/stl_tree.h:625:8: error: no matching function for call to 'operator new(sizetype, std::_Rb_tree_node<std::pair<int, int> >*&)'
::new(__node) _Rb_tree_node<_Val>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<built-in>: note: candidate: void* operator new(long unsigned int)
<built-in>: note: candidate expects 1 argument, 2 provided
foo.cc: In function 'int main()':
foo.cc:87:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
read(n),read(q),scanf("%s",Type);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~