| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1233874 | Sir_Ahmed_Imran | Beech Tree (IOI23_beechtree) | C++17 | Compilation error | 0 ms | 0 KiB |
.size()#include "beechtree.h"
#include <bits/stdc++.h>
using namespace std;
#define MAXN 200001
#define nl '\n'
#define ff first
#define ss second
#define ll long long
#define ld long double
#define terminator main
#define pll pair<ll,ll>
#define add insert
#define append push_back
#define pii pair<int,int>
#define all(x) (x).begin(),(x).end()
vector<int> a[MAXN];
map<int, bool> x[MAXN];
vector<int> beechtree(int n, int m, vector<int> p, vector<int> c){
vector<pii> vec;
vector<int> ans(n, 1);
for(int v = n - 1; v >= 0; v--){
if(v) a[p[v]].append(v);
vec = {{a[v].size(), v}};
for(auto & u : a[v]){
if(a[u].size() > a[v].size() || !ans[u] || x[v][c[u]])
ans[v] = 0;
vec.append({a[u].size(), u});
x[v][c[u]] = 1;
}
if(!ans[v]) continue;
sort(all(vec));
for(int i = 0; i < a[v].size(); i++)
for(auto & [j, k] : x[vec[i].ss])
if(!x[vec[i + 1].ss][j]) ans[v] = 0;
}
return ans;
}
Compilation message (stderr)
beechtree.cpp:1:8: error: stray '#' in program
1 | .size()#include "beechtree.h"
| ^
beechtree.cpp:1:1: error: expected unqualified-id before '.' token
1 | .size()#include "beechtree.h"
| ^
In file included from /usr/include/c++/11/cmath:43,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/11/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/11/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:431:26: error: 'std::size_t' has not been declared
431 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:432:25: error: '_Size' was not declared in this scope
432 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:432:31: error: template argument 1 is invalid
432 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/11/type_traits:537:51: error: template argument 1 is invalid
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/include/c++/11/type_traits:1361:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1361:57: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/11/type_traits:1361:57: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1370:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1370 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1370:46: error: template argument 1 is invalid
1370 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1370:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1372:26: error: 'std::size_t' has not been declared
1372 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1373:21: error: '_Size' was not declared in this scope
1373 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1373:27: error: template argument 1 is invalid
1373 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1374:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1374:65: error: template argument 1 is invalid
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1374:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1378:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1378:65: error: template argument 1 is invalid
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1378:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1383:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1383 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1383:46: error: template argument 1 is invalid
1383 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1383:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1385:42: error: 'std::size_t' has not been declared
1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1386:23: error: '_Size' was not declared in this scope
1386 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/11/type_traits:1386:36: error: template argument 1 is invalid
1386 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/11/type_traits:1387:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1387 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1388:45: error: '_Size' was not declared in this scope
1388 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/11/type_traits:1389:77: error: template argument 1 is invalid
1389 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1389:77: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1394:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
1394 | : public integral_constant<std::size_t,
| ^~~~~~
In file included from /usr/include/stdlib.h:32,
from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/type_traits:1396:73: error: template argument 1 is invalid
1396 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1396:73: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1984:26: error: 'std::size_t' has not been declared
1984 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1985:30: error: '_Size' was not declared in this scope
1985 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1985:36: error: template argument 1 is invalid
1985 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1997:26: error: 'std::size_t' has not been declared
1997 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1998:35: error: '_Size' was not declared in this scope
1998 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1998:41: error: template argument 1 is invalid
1998 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:2056:12: error: 'std::size_t' has not been declared
2056 | template<std::size_t _Len>
| ^~~
/usr/include/c++/11/type_traits:2061:30: error: '_Len' was not declared in this scope
2061 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2076:12: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2076:30: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2077:55: error: '_Len' was not declared in this scope
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/11/type_traits:2077:59: error: template argument 1 is invalid
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/11/type_traits:2082:30: error: '_Len' was not declared in this scope
2082 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2083:44: error: '_Align' was not declared in this scope
2083 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:65,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/bits/stl_iterator_base_types.h:125:67: error: 'ptrdiff_t' does not name a type
125 | template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:65,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/bits/stl_iterator_base_types.h:1:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Types used in iterator implementation -*- C++ -*-
In file included from /usr/include/c++/11/bits/stl_algobase.h:65,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: error: 'ptrdiff_t' does not name a type
214 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: error: 'ptrdiff_t' does not name a type
225 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/bits/stl_algobase.h:66,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:110:5: error: 'ptrdiff_t' does not name a type
110 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:66:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
65 | #include <debug/assertions.h>
+++ |+#include <cstddef>
66 |
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: error: 'ptrdiff_t' does not name a type
116 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/bits/stl_iterator.h:67,
from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/bits/ptr_traits.h:119:27: error: 'ptrdiff_t' was not declared in this scope
119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^~~~~~~~~
/usr/include/c++/11/bits/ptr_traits.h:1:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Pointer Traits -*- C++ -*-
/usr/include/c++/11/bits/ptr_traits.h:119:61: error: template argument 1 is invalid
119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^
/usr/include/c++/11/bits/ptr_traits.h:138:15: error: 'ptrdiff_t' does not name a type
138 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/ptr_traits.h:138:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from beechtree.cpp:2:
/usr/include/c++/11/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++/11/bits/stl_algobase.h:429:17: error: 'ptrdiff_t' does not name a type
429 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:72:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
71 | #include <bits/predefined_ops.h>
+++ |+#include <cstddef>
72 | #if __cplusplus >= 201103L
/usr/include/c++/11/bits/stl_algobase.h:430:15: error: '_Num' was not declared in this scope
430 | if (_Num)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:432:29: error: '_Num' was not declared in this scope
432 | return __result + _Num;
| ^~~~
/usr/include/c++/11/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++/11/bits/stl_algobase.h:740:17: error: 'ptrdiff_t' does not name a type
740 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:740:17: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/bits/stl_algobase.h:741:15: error: '_Num' was not declared in this scope
741 | if (_Num)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:743:29: error: '_Num' was not declared in this scope
743 | return __result - _Num;
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h: At global scope:
/usr/include/c++/11/bits/stl_algobase.h:1349:16: error: 'ptrdiff_t' does not name a type
1349 | static ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:1349:16: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/bits/exception_ptr.h:40,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/new:126:26: error: declaration of 'operator new' as non-function
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/11/new:126:44: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
| time_t
/usr/include/c++/11/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
127 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:128:26: error: declaration of 'operator new []' as non-function
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/11/new:128:46: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
| time_t
/usr/include/c++/11/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
129 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:135:29: error: 'std::size_t' has not been declared
135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:137:31: error: 'std::size_t' has not been declared
137 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:140:26: error: declaration of 'operator new' as non-function
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/11/new:140:44: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
| time_t
/usr/include/c++/11/new:140:52: error: expected primary-expression before 'const'
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/11/new:142:26: error: declaration of 'operator new []' as non-function
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/11/new:142:46: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
| time_t
/usr/include/c++/11/new:142:54: error: expected primary-expression before 'const'
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/usr/include/c++/11/new:149:26: error: declaration of 'operator new' as non-function
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/11/new:149:44: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^~~~~~
| time_t
/usr/include/c++/11/new:149:68: error: expected primary-expression before ')' token
149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:150:73: error: attributes after parenthesized initializer ignored [-fpermissive]
150 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/new:151:26: error: declaration of 'operator new' as non-function
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/11/new:151:44: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
| time_t
/usr/include/c++/11/new:151:68: error: expected primary-expression before ',' token
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/11/new:151:70: error: expected primary-expression before 'const'
151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/11/new:157:26: error: declaration of 'operator new []' as non-function
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~~~
/usr/include/c++/11/new:157:46: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^~~~~~
| time_t
/usr/include/c++/11/new:157:70: error: expected primary-expression before ')' token
157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t)
| ^
/usr/include/c++/11/new:158:73: error: attributes after parenthesized initializer ignored [-fpermissive]
158 | __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__));
| ^
/usr/include/c++/11/new:159:26: error: declaration of 'operator new []' as non-function
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~~~
/usr/include/c++/11/new:159:46: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~~
| time_t
/usr/include/c++/11/new:159:70: error: expected primary-expression before ',' token
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^
/usr/include/c++/11/new:159:72: error: expected primary-expression before 'const'
159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
| ^~~~~
/usr/include/c++/11/new:166:29: error: 'std::size_t' has not been declared
166 | void operator delete(void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/new:168:31: error: 'std::size_t' has not been declared
168 | void operator delete[](void*, std::size_t, std::align_val_t)
| ^~~
/usr/include/c++/11/new:174:33: error: declaration of 'operator new' as non-function
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/11/new:174:51: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
| time_t
/usr/include/c++/11/new:174:59: error: expected primary-expression before 'void'
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/usr/include/c++/11/new:176:33: error: declaration of 'operator new []' as non-function
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/11/new:176:53: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
| time_t
/usr/include/c++/11/new:176:61: error: expected primary-expression before 'void'
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/bits/char_traits.h:114:61: error: 'std::size_t' has not been declared
114 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:116:40: error: 'size_t' in namespace 'std' does not name a type; did you mean 'time_t'?
116 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
| time_t
/usr/include/c++/11/bits/char_traits.h:120:34: error: 'std::size_t' has not been declared
120 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:123:52: error: 'std::size_t' has not been declared
123 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:126:52: error: 'std::size_t' has not been declared
126 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:129:30: error: 'std::size_t' has not been declared
129 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:155:59: error: 'std::size_t' has not been declared
155 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/11/bits/char_traits.h:157:17: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
| time_t
/usr/include/c++/11/bits/char_traits.h:157:33: error: '__i' was not declared in this scope; did you mean '__n'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:166:31: error: 'size_t' in namespace 'std' does not name a type; did you mean 'time_t'?
166 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
| time_t
/usr/include/c++/11/bits/char_traits.h:179:32: error: 'std::size_t' has not been declared
179 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/11/bits/char_traits.h:181:17: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
| time_t
/usr/include/c++/11/bits/char_traits.h:181:33: error: '__i' was not declared in this scope; did you mean '__s'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:191:50: error: 'std::size_t' has not been declared
191 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:241:50: error: 'std::size_t' has not been declared
241 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:252:28: error: 'std::size_t' has not been declared
252 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:397:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char>'
397 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:521:53: error: 'length' is not a member of '__gnu_cxx::char_traits<wchar_t>'
521 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:523:22: error: call to non-'constexpr' function 'size_t wcslen(const wchar_t*)'
523 | return wcslen(__s);
| ~~~~~~^~~~~
In file included from /usr/include/c++/11/cwchar:44,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:50,
from beechtree.cpp:2:
/usr/include/wchar.h:223:15: note: 'size_t wcslen(const wchar_t*)' declared here
223 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/ext/new_allocator.h: At global scope:
/usr/include/c++/11/ext/new_allocator.h:59:20: error: 'size_t' in namespace 'std' does not name a type; did you mean 'time_t'?
59 | typedef std::size_t size_type;
| ^~~~~~
| time_t
/usr/include/c++/11/ext/new_allocator.h:60:20: error: 'ptrdiff_t' in namespace 'std' does not name a type
60 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:103:16: error: 'size_type' has not been declared
103 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:132:28: error: 'size_type' has not been declared
132 | deallocate(_Tp* __p, size_type __t __attribute__ ((__unused__)))
| ^~~~~~~~~
/usr/include/c++/11/ext/new_allocator.h:153:7: error: 'size_type' does not name a type; did you mean 'size_t'?
153 | size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h:196:26: error: 'size_type' does not name a type; did you mean 'size_t'?
196 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| size_t
/usr/include/c++/11/ext/new_allocator.h: In member function '_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(int, const void*)':
/usr/include/c++/11/ext/new_allocator.h:115:29: error: 'size_t' is not a member of 'std'; did you mean 'time_t'?
115 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
| time_t
In file included from /usr/include/c++/11/ext/alloc_traits.h:34,
from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/bits/alloc_traits.h: At global scope:
/usr/include/c++/11/bits/alloc_traits.h:432:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
432 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:435:30: error: 'size_t' in namespace 'std' does not name a type; did you mean 'time_t'?
435 | using size_type = std::size_t;
| ^~~~~~
| time_t
/usr/include/c++/11/bits/alloc_traits.h:463:37: error: 'size_type' has not been declared
463 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:477:37: error: 'size_type' has not been declared
477 | allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:495:52: error: 'size_type' has not been declared
495 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:546:35: error: 'size_type' does not name a type; did you mean 'true_type'?
546 | static _GLIBCXX20_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/usr/include/c++/11/bits/alloc_traits.h:589:36: error: 'ptrdiff_t' in namespace 'std' does not name a type
589 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:592:30: error: 'size_t' in namespace 'std' does not name a type; did you mean 'time_t'?
592 | using size_type = std::size_t;
| ^~~~~~
| time_t
/usr/include/c++/11/bits/alloc_traits.h:614:33: error: 'size_type' has not been declared
614 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:618:42: error: 'size_type' has not been declared
618 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/usr/include/c++/11/bits/alloc_traits.h:651:14: error: 'size_type' does not name a type; did you mean 'true_type'?
651 | static size_type
| ^~~~~~~~~
| true_type
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:55:53: error: 'std::size_t' has not been declared
55 | const char* __name, const _CharT* __str, std::size_t* __idx,
| ^~~
/usr/include/c++/11/ext/string_conversions.h:99:43: error: 'std::size_t' has not been declared
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~
/usr/include/c++/11/ext/string_conversions.h:100:54: error: 'std::size_t' has not been declared
100 | __builtin_va_list), std::size_t __n,
| ^~~
In file included from /usr/include/c++/11/bits/basic_string.h:40,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>':
/usr/include/c++/11/bits/basic_string.h:88:24: required from 'class std::__cxx11::basic_string<char>'
/usr/include/c++/11/bits/basic_string.h:6620:68: required from here
/usr/include/c++/11/ext/alloc_traits.h:59:53: error: no type named 'size_type' in 'struct std::allocator_traits<std::allocator<char> >'
59 | typedef typename _Base_type::size_type size_type;
| ^~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:60:53: error: no type named 'difference_type' in 'struct std::allocator_traits<std::allocator<char> >'
60 | typedef typename _Base_type::difference_type difference_type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/ext/alloc_traits.h:68:23: error: 'max_size' has not been declared in '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type'
68 | using _Base_type::max_size;
| ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/bits/basic_string.h: In function 'int std::__cxx11::stoi(const string&, size_t*, int)':
/usr/include/c++/11/bits/basic_string.h:6620:40: error: no matching function for call to '__stoa<long int, int>(long int (*)(const char*, char**, int) noexcept, const char [5], const char*, size_t*&, int&)'
6620 | { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6621 | __idx, __base); }
| ~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from beechtree.cpp:2:
/usr/include/c++/11/ext/string_conversions.h:54:5: note: candidate: 'template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...)'
54 | __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
| ^~~~~~
/usr/include/c++/11/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
fr