Detalii evaluare #64106231

Rezumat problemă

Pe teritoriul insulelelor FalkLand exista n britanici notati de la 1 la n si m argentinieni notati de la 1 la m.

Se știe că fiecare britanic poate lega o singura relație de prietenie cu una dintre cunoștințele sale Argentiniene și vice-versa. Pentru a detensiona relațiile, cele două naționalități sunt obligate să se cunoască și să lege cât mai multe relații de prietenie.

Având în vedere faptul că fiecare britanic poate lega o singură relație de prietenie cu un argentinian, iar relatiie de prietenie se știu deoarece acestea sunt evidente, Margaret Thatcher va solicită ajutorul în aflarea numărului maxim de relații noi de prietenie care se vor lega pe insula .

Detalii

Problema Falkland Operații I/O falkland.in/falkland.out
Limita timp 0.5 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #64106231 Utilizator Ferseta Alex (alexutsdfghjjjk)
Fișier falkland.cpp Dimensiune 2.80 KB
Data încărcării 17 Aprilie 2026, 10:41 Scor/rezultat Eroare de compilare

Evaluare

Mesaj compilare

falkland.cpp:1:175: error: stray ‘\’ in program
    1 | Pentru valorile de intrare menționate ($n, m$ până la $50.000$ și $k$ până la $150.000$), algoritmul simplu de cuplaj bazat pe DFS (care are o complexitate teoretică de $O(N \cdot K)$) ar putea deveni prea lent pentru limitele de timp standard (de obicei 1-2 secunde), deoarece în cel mai rău caz ar efectua miliarde de operații.Pentru a te asigura că problema trece testele de performanță, trebuie să folosim Algoritmul Hopcroft-Karp, care are o complexitate mult mai eficientă: $O(K\sqrt{N})$.Optimizări cheie pentru date mari:Hopcroft-Karp: Folosește un BFS pentru a găsi mai multe "drumuri de ameliorare" simultan (pe niveluri) și apoi un DFS pentru a le cupla.Citire rapidă: La $150.000$ de linii, cin și cout pot fi lente. Folosim scanf/printf sau dezactivăm sincronizarea cu stdio.Iată implementarea optimizată pentru limitele date:C++#include <iostream>
      |                                                                                                                                                                               ^
falkland.cpp:1:485: error: stray ‘\’ in program
    1 | Pentru valorile de intrare menționate ($n, m$ până la $50.000$ și $k$ până la $150.000$), algoritmul simplu de cuplaj bazat pe DFS (care are o complexitate teoretică de $O(N \cdot K)$) ar putea deveni prea lent pentru limitele de timp standard (de obicei 1-2 secunde), deoarece în cel mai rău caz ar efectua miliarde de operații.Pentru a te asigura că problema trece testele de performanță, trebuie să folosim Algoritmul Hopcroft-Karp, care are o complexitate mult mai eficientă: $O(K\sqrt{N})$.Optimizări cheie pentru date mari:Hopcroft-Karp: Folosește un BFS pentru a găsi mai multe "drumuri de ameliorare" simultan (pe niveluri) și apoi un DFS pentru a le cupla.Citire rapidă: La $150.000$ de linii, cin și cout pot fi lente. Folosim scanf/printf sau dezactivăm sincronizarea cu stdio.Iată implementarea optimizată pentru limitele date:C++#include <iostream>
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
falkland.cpp:1:843: error: stray ‘#’ in program
    1 | Pentru valorile de intrare menționate ($n, m$ până la $50.000$ și $k$ până la $150.000$), algoritmul simplu de cuplaj bazat pe DFS (care are o complexitate teoretică de $O(N \cdot K)$) ar putea deveni prea lent pentru limitele de timp standard (de obicei 1-2 secunde), deoarece în cel mai rău caz ar efectua miliarde de operații.Pentru a te asigura că problema trece testele de performanță, trebuie să folosim Algoritmul Hopcroft-Karp, care are o complexitate mult mai eficientă: $O(K\sqrt{N})$.Optimizări cheie pentru date mari:Hopcroft-Karp: Folosește un BFS pentru a găsi mai multe "drumuri de ameliorare" simultan (pe niveluri) și apoi un DFS pentru a le cupla.Citire rapidă: La $150.000$ de linii, cin și cout pot fi lente. Folosim scanf/printf sau dezactivăm sincronizarea cu stdio.Iată implementarea optimizată pentru limitele date:C++#include <iostream>
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
falkland.cpp:1:1: error: ‘Pentru’ does not name a type
    1 | Pentru valorile de intrare menționate ($n, m$ până la $50.000$ și $k$ până la $150.000$), algoritmul simplu de cuplaj bazat pe DFS (care are o complexitate teoretică de $O(N \cdot K)$) ar putea deveni prea lent pentru limitele de timp standard (de obicei 1-2 secunde), deoarece în cel mai rău caz ar efectua miliarde de operații.Pentru a te asigura că problema trece testele de performanță, trebuie să folosim Algoritmul Hopcroft-Karp, care are o complexitate mult mai eficientă: $O(K\sqrt{N})$.Optimizări cheie pentru date mari:Hopcroft-Karp: Folosește un BFS pentru a găsi mai multe "drumuri de ameliorare" simultan (pe niveluri) și apoi un DFS pentru a le cupla.Citire rapidă: La $150.000$ de linii, cin și cout pot fi lente. Folosim scanf/printf sau dezactivăm sincronizarea cu stdio.Iată implementarea optimizată pentru limitele date:C++#include <iostream>
      | ^~~~~~
falkland.cpp:1:493: error: expected unqualified-id before ‘)’ token
    1 | Pentru valorile de intrare menționate ($n, m$ până la $50.000$ și $k$ până la $150.000$), algoritmul simplu de cuplaj bazat pe DFS (care are o complexitate teoretică de $O(N \cdot K)$) ar putea deveni prea lent pentru limitele de timp standard (de obicei 1-2 secunde), deoarece în cel mai rău caz ar efectua miliarde de operații.Pentru a te asigura că problema trece testele de performanță, trebuie să folosim Algoritmul Hopcroft-Karp, care are o complexitate mult mai eficientă: $O(K\sqrt{N})$.Optimizări cheie pentru date mari:Hopcroft-Karp: Folosește un BFS pentru a găsi mai multe "drumuri de ameliorare" simultan (pe niveluri) și apoi un DFS pentru a le cupla.Citire rapidă: La $150.000$ de linii, cin și cout pot fi lente. Folosim scanf/printf sau dezactivăm sincronizarea cu stdio.Iată implementarea optimizată pentru limitele date:C++#include <iostream>
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:62,
                 from /usr/include/c++/13/vector:62,
                 from falkland.cpp:2:
/usr/include/c++/13/ext/type_traits.h:164:35: error: ‘constexpr const bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of entity
  164 |   __is_null_pointer(std::nullptr_t)
      |                                   ^
/usr/include/c++/13/ext/type_traits.h:159:5: note: previous declaration ‘template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)’
  159 |     __is_null_pointer(_Type)
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/type_traits.h:164:26: error: ‘nullptr_t’ is not a member of ‘std’
  164 |   __is_null_pointer(std::nullptr_t)
      |                          ^~~~~~~~~
In file included from /usr/include/c++/13/bits/stl_pair.h:60,
                 from /usr/include/c++/13/bits/stl_algobase.h:64:
/usr/include/c++/13/type_traits:275:27: error: ‘size_t’ has not been declared
  275 |   template <typename _Tp, size_t = sizeof(_Tp)>
      |                           ^~~~~~
/usr/include/c++/13/type_traits:510:31: error: ‘std::size_t’ has not been declared
  510 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/usr/include/c++/13/type_traits:511:25: error: ‘_Size’ was not declared in this scope
  511 |     struct is_array<_Tp[_Size]>
      |                         ^~~~~
/usr/include/c++/13/type_traits:511:31: error: template argument 1 is invalid
  511 |     struct is_array<_Tp[_Size]>
      |                               ^
/usr/include/c++/13/type_traits:617:33: error: ‘nullptr_t’ is not a member of ‘std’
  617 |     struct is_null_pointer<std::nullptr_t>
      |                                 ^~~~~~~~~
/usr/include/c++/13/type_traits:617:33: error: ‘nullptr_t’ is not a member of ‘std’
/usr/include/c++/13/type_traits:617:42: error: template argument 1 is invalid
  617 |     struct is_null_pointer<std::nullptr_t>
      |                                          ^
/usr/include/c++/13/type_traits:621:48: error: template argument 1 is invalid
  621 |     struct is_null_pointer<const std::nullptr_t>
      |                                                ^
/usr/include/c++/13/type_traits:625:51: error: template argument 1 is invalid
  625 |     struct is_null_pointer<volatile std::nullptr_t>
      |                                                   ^
/usr/include/c++/13/type_traits:629:57: error: template argument 1 is invalid
  629 |     struct is_null_pointer<const volatile std::nullptr_t>
      |                                                         ^
/usr/include/c++/13/type_traits:914:26: error: ‘size_t’ has not been declared
  914 |   template<typename _Tp, size_t _Size>
      |                          ^~~~~~
/usr/include/c++/13/type_traits:915:40: error: ‘_Size’ was not declared in this scope
  915 |     struct __is_array_known_bounds<_Tp[_Size]>
      |                                        ^~~~~
/usr/include/c++/13/type_traits:915:46: error: template argument 1 is invalid
  915 |     struct __is_array_known_bounds<_Tp[_Size]>
      |                                              ^
/usr/include/c++/13/type_traits:1348:37: error: ‘size_t’ is not a member of ‘std’
 1348 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                     ^~~~~~
/usr/include/c++/13/type_traits:1348:37: error: ‘size_t’ is not a member of ‘std’
/usr/include/c++/13/type_traits:1348:57: error: template argument 1 is invalid
 1348 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                                         ^
/usr/include/c++/13/type_traits:1348:57: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1357:37: error: ‘size_t’ is not a member of ‘std’
 1357 |     : public integral_constant<std::size_t, 0> { };
      |                                     ^~~~~~
/usr/include/c++/13/type_traits:1357:37: error: ‘size_t’ is not a member of ‘std’
/usr/include/c++/13/type_traits:1357:46: error: template argument 1 is invalid
 1357 |     : public integral_constant<std::size_t, 0> { };
      |                                              ^
/usr/include/c++/13/type_traits:1357:46: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1359:31: error: ‘std::size_t’ has not been declared
 1359 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/usr/include/c++/13/type_traits:1360:21: error: ‘_Size’ was not declared in this scope
 1360 |     struct rank<_Tp[_Size]>
      |                     ^~~~~
/usr/include/c++/13/type_traits:1360:27: error: template argument 1 is invalid
 1360 |     struct rank<_Tp[_Size]>
      |                           ^
/usr/include/c++/13/type_traits:1361:37: error: ‘size_t’ is not a member of ‘std’
 1361 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/include/c++/13/type_traits:1361:37: error: ‘size_t’ is not a member of ‘std’
/usr/include/c++/13/type_traits:1361:65: error: template argument 1 is invalid
 1361 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/13/type_traits:1361:65: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1365:37: error: ‘size_t’ is not a member of ‘std’
 1365 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/include/c++/13/type_traits:1365:37: error: ‘size_t’ is not a member of ‘std’
/usr/include/c++/13/type_traits:1365:65: error: template argument 1 is invalid
 1365 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/13/type_traits:1365:65: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1370:32: error: ‘size_t’ was not declared in this scope
 1370 |     : public integral_constant<size_t, 0> { };
      |                                ^~~~~~
/usr/include/c++/13/type_traits:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
  +++ |+#include <cstddef>
    1 | // C++11 <type_traits> -*- C++ -*-
/usr/include/c++/13/type_traits:1370:41: error: template argument 1 is invalid
 1370 |     : public integral_constant<size_t, 0> { };
      |                                         ^
/usr/include/c++/13/type_traits:1370:41: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1372:26: error: ‘size_t’ has not been declared
 1372 |   template<typename _Tp, size_t _Size>
      |                          ^~~~~~
/usr/include/c++/13/type_traits:1373:23: error: ‘_Size’ was not declared in this scope
 1373 |     struct extent<_Tp[_Size], 0>
      |                       ^~~~~
/usr/include/c++/13/type_traits:1373:32: error: template argument 1 is invalid
 1373 |     struct extent<_Tp[_Size], 0>
      |                                ^
/usr/include/c++/13/type_traits:1374:32: error: ‘size_t’ was not declared in this scope
 1374 |     : public integral_constant<size_t, _Size> { };
      |                                ^~~~~~
/usr/include/c++/13/type_traits:1374:32: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:1374:40: error: ‘_Size’ was not declared in this scope
 1374 |     : public integral_constant<size_t, _Size> { };
      |                                        ^~~~~
/usr/include/c++/13/type_traits:1374:45: error: template argument 1 is invalid
 1374 |     : public integral_constant<size_t, _Size> { };
      |                                             ^
/usr/include/c++/13/type_traits:1374:45: error: template argument 2 is invalid
/usr/include/c++/13/type_traits:1376:42: error: ‘size_t’ has not been declared
 1376 |   template<typename _Tp, unsigned _Uint, size_t _Size>
      |                                          ^~~~~~
/usr/include/c++/13/type_traits:1377:23: error: ‘_Size’ was not declared in this scope
 1377 |     struct extent<_Tp[_Size], _Uint>
      |                       ^~~~~
/usr/include/c++/13/type_traits:1377:36: error: template argument 1 is invalid
 1377 |     struct extent<_Tp[_Size], _Uint>
      |                                    ^
/usr/include/c++/13/type_traits:1382:32: error: ‘size_t’ was not declared in this scope
 1382 |     : public integral_constant<size_t, 0> { };
      |                                ^~~~~~
/usr/include/c++/13/type_traits:1382:32: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:1382:41: error: template argument 1 is invalid
 1382 |     : public integral_constant<size_t, 0> { };
      |                                         ^
/usr/include/c++/13/type_traits:1382:41: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1764:26: error: ‘size_t’ does not name a type
 1764 |       { static constexpr size_t __size = sizeof(_Tp); };
      |                          ^~~~~~
/usr/include/c++/13/type_traits:1764:26: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:1766:14: error: ‘size_t’ has not been declared
 1766 |     template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
      |              ^~~~~~
/usr/include/c++/13/type_traits:1766:48: error: ‘_Sz’ was not declared in this scope
 1766 |     template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
      |                                                ^~~
/usr/include/c++/13/type_traits:1767:14: error: no default argument for ‘_Tp’
 1767 |       struct __select;
      |              ^~~~~~~~
/usr/include/c++/13/type_traits:1769:14: error: ‘size_t’ has not been declared
 1769 |     template<size_t _Sz, typename _Uint, typename... _UInts>
      |              ^~~~~~
/usr/include/c++/13/type_traits:1770:23: error: ‘_Sz’ was not declared in this scope
 1770 |       struct __select<_Sz, _List<_Uint, _UInts...>, true>
      |                       ^~~
/usr/include/c++/13/type_traits:1770:57: error: template argument 1 is invalid
 1770 |       struct __select<_Sz, _List<_Uint, _UInts...>, true>
      |                                                         ^
/usr/include/c++/13/type_traits:1773:14: error: ‘size_t’ has not been declared
 1773 |     template<size_t _Sz, typename _Uint, typename... _UInts>
      |              ^~~~~~
/usr/include/c++/13/type_traits:1774:23: error: ‘_Sz’ was not declared in this scope
 1774 |       struct __select<_Sz, _List<_Uint, _UInts...>, false>
      |                       ^~~
/usr/include/c++/13/type_traits:1774:58: error: template argument 1 is invalid
 1774 |       struct __select<_Sz, _List<_Uint, _UInts...>, false>
      |                                                          ^
/usr/include/c++/13/type_traits:1775:18: error: ‘_Sz’ was not declared in this scope
 1775 |       : __select<_Sz, _List<_UInts...>>
      |                  ^~~
/usr/include/c++/13/type_traits:1775:38: error: template argument 1 is invalid
 1775 |       : __select<_Sz, _List<_UInts...>>
      |                                      ^~
/usr/include/c++/13/type_traits:1766:60: error: ‘__size’ is not a member of ‘std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>’
 1766 |     template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
      |                                                            ^~~~~~
/usr/include/c++/13/type_traits:1788:68: error: template argument 3 is invalid
 1788 |       using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;
      |                                                                    ^
/usr/include/c++/13/type_traits:1792:47: error: ‘__unsigned_type’ was not declared in this scope
 1792 |         = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
      |                                               ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1792:62: error: template argument 2 is invalid
 1792 |         = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
      |                                                              ^
/usr/include/c++/13/type_traits:1803:68: error: ‘__type’ in ‘class std::__make_unsigned_selector<wchar_t, false, true>’ does not name a type
 1803 |         = typename __make_unsigned_selector<wchar_t, false, true>::__type;
      |                                                                    ^~~~~~
/usr/include/c++/13/type_traits:1819:69: error: ‘__type’ in ‘class std::__make_unsigned_selector<char16_t, false, true>’ does not name a type
 1819 |         = typename __make_unsigned_selector<char16_t, false, true>::__type;
      |                                                                     ^~~~~~
/usr/include/c++/13/type_traits:1826:69: error: ‘__type’ in ‘class std::__make_unsigned_selector<char32_t, false, true>’ does not name a type
 1826 |         = typename __make_unsigned_selector<char32_t, false, true>::__type;
      |                                                                     ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of ‘class std::__make_unsigned_selector<wchar_t, true, false>’:
/usr/include/c++/13/type_traits:1921:62:   required from ‘class std::__make_signed_selector<wchar_t, false, true>’
/usr/include/c++/13/type_traits:1935:57:   required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<wchar_t>’
 1749 |       using __unsigned_type
      |             ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<wchar_t>’
 1753 |       using __type
      |             ^~~~~~
/usr/include/c++/13/type_traits:1935:66: error: invalid combination of multiple type-specifiers
 1935 |         = typename __make_signed_selector<wchar_t, false, true>::__type;
      |                                                                  ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of ‘class std::__make_unsigned_selector<char16_t, true, false>’:
/usr/include/c++/13/type_traits:1921:62:   required from ‘class std::__make_signed_selector<char16_t, false, true>’
/usr/include/c++/13/type_traits:1951:58:   required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char16_t>’
 1749 |       using __unsigned_type
      |             ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char16_t>’
 1753 |       using __type
      |             ^~~~~~
/usr/include/c++/13/type_traits:1951:67: error: invalid combination of multiple type-specifiers
 1951 |         = typename __make_signed_selector<char16_t, false, true>::__type;
      |                                                                   ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of ‘class std::__make_unsigned_selector<char32_t, true, false>’:
/usr/include/c++/13/type_traits:1921:62:   required from ‘class std::__make_signed_selector<char32_t, false, true>’
/usr/include/c++/13/type_traits:1958:58:   required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char32_t>’
 1749 |       using __unsigned_type
      |             ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char32_t>’
 1753 |       using __type
      |             ^~~~~~
/usr/include/c++/13/type_traits:1958:67: error: invalid combination of multiple type-specifiers
 1958 |         = typename __make_signed_selector<char32_t, false, true>::__type;
      |                                                                   ^~~~~~
/usr/include/c++/13/type_traits:1993:31: error: ‘std::size_t’ has not been declared
 1993 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/usr/include/c++/13/type_traits:1994:30: error: ‘_Size’ was not declared in this scope
 1994 |     struct remove_extent<_Tp[_Size]>
      |                              ^~~~~
/usr/include/c++/13/type_traits:1994:36: error: template argument 1 is invalid
 1994 |     struct remove_extent<_Tp[_Size]>
      |                                    ^
/usr/include/c++/13/type_traits:2006:31: error: ‘std::size_t’ has not been declared
 2006 |   template<typename _Tp, std::size_t _Size>
      |                               ^~~~~~
/usr/include/c++/13/type_traits:2007:35: error: ‘_Size’ was not declared in this scope
 2007 |     struct remove_all_extents<_Tp[_Size]>
      |                                   ^~~~~
/usr/include/c++/13/type_traits:2007:41: error: template argument 1 is invalid
 2007 |     struct remove_all_extents<_Tp[_Size]>
      |                                         ^
/usr/include/c++/13/type_traits:2072:17: error: ‘std::size_t’ has not been declared
 2072 |   template<std::size_t _Len>
      |                 ^~~~~~
/usr/include/c++/13/type_traits:2077:30: error: ‘_Len’ was not declared in this scope
 2077 |         unsigned char __data[_Len];
      |                              ^~~~
/usr/include/c++/13/type_traits:2095:17: error: ‘std::size_t’ has not been declared
 2095 |   template<std::size_t _Len, std::size_t _Align =
      |                 ^~~~~~
/usr/include/c++/13/type_traits:2095:35: error: ‘std::size_t’ has not been declared
 2095 |   template<std::size_t _Len, std::size_t _Align =
      |                                   ^~~~~~
/usr/include/c++/13/type_traits:2096:55: error: ‘_Len’ was not declared in this scope
 2096 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                       ^~~~
/usr/include/c++/13/type_traits:2096:59: error: template argument 1 is invalid
 2096 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                           ^
/usr/include/c++/13/type_traits:2103:30: error: ‘_Len’ was not declared in this scope
 2103 |         unsigned char __data[_Len];
      |                              ^~~~
/usr/include/c++/13/type_traits:2104:44: error: ‘_Align’ was not declared in this scope
 2104 |         struct __attribute__((__aligned__((_Align)))) { } __align;
      |                                            ^~~~~~
/usr/include/c++/13/type_traits:2111:20: error: ‘size_t’ does not name a type
 2111 |       static const size_t _S_alignment = 0;
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2111:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2112:20: error: ‘size_t’ does not name a type
 2112 |       static const size_t _S_size = 0;
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2112:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2118:20: error: ‘size_t’ does not name a type
 2118 |       static const size_t _S_alignment =
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2118:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2121:20: error: ‘size_t’ does not name a type
 2121 |       static const size_t _S_size =
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2121:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2141:13: error: ‘size_t’ has not been declared
 2141 |   template <size_t _Len, typename... _Types>
      |             ^~~~~~
/usr/include/c++/13/type_traits:2150:20: error: ‘size_t’ does not name a type
 2150 |       static const size_t _S_len = _Len > __strictest::_S_size
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2150:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2154:20: error: ‘size_t’ does not name a type
 2154 |       static const size_t alignment_value = __strictest::_S_alignment;
      |                    ^~~~~~
/usr/include/c++/13/type_traits:2154:20: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2156:40: error: ‘_S_len’ was not declared in this scope
 2156 |       typedef typename aligned_storage<_S_len, alignment_value>::type type;
      |                                        ^~~~~~
/usr/include/c++/13/type_traits:2156:48: error: ‘alignment_value’ was not declared in this scope; did you mean ‘alignment_of’?
 2156 |       typedef typename aligned_storage<_S_len, alignment_value>::type type;
      |                                                ^~~~~~~~~~~~~~~
      |                                                alignment_of
/usr/include/c++/13/type_traits:2156:63: error: template argument 1 is invalid
 2156 |       typedef typename aligned_storage<_S_len, alignment_value>::type type;
      |                                                               ^
/usr/include/c++/13/type_traits:2156:63: error: template argument 2 is invalid
/usr/include/c++/13/type_traits:2159:13: error: ‘size_t’ has not been declared
 2159 |   template <size_t _Len, typename... _Types>
      |             ^~~~~~
/usr/include/c++/13/type_traits:2160:11: error: ‘size_t’ does not name a type
 2160 |     const size_t aligned_union<_Len, _Types...>::alignment_value;
      |           ^~~~~~
/usr/include/c++/13/type_traits:2160:11: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/type_traits:2174:26: error: ‘size_t’ has not been declared
 2174 |   template<typename _Up, size_t _Nm>
      |                          ^~~~~~
/usr/include/c++/13/type_traits:2175:33: error: ‘_Nm’ was not declared in this scope
 2175 |     struct __decay_selector<_Up[_Nm]>
      |                                 ^~~
/usr/include/c++/13/type_traits:2175:37: error: template argument 1 is invalid
 2175 |     struct __decay_selector<_Up[_Nm]>
      |                                     ^
/usr/include/c++/13/type_traits:2728:26: error: ‘size_t’ has not been declared
 2728 |   template<typename _Tp, size_t _Nm>
      |                          ^~~~~~
/usr/include/c++/13/type_traits:2732:21: error: ‘_Nm’ was not declared in this scope
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                     ^~~
/usr/include/c++/13/type_traits:2732:24: error: ‘template<class _Tp, <declaration error> > std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap’ conflicts with a previous declaration
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                        ^
/usr/include/c++/13/type_traits:2724:5: note: previous declaration ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)’
 2724 |     swap(_Tp&, _Tp&)
      |     ^~~~
/usr/include/c++/13/type_traits:2732:16: error: ‘__a’ was not declared in this scope
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                ^~~
/usr/include/c++/13/type_traits:2732:21: error: ‘_Nm’ was not declared in this scope
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                     ^~~
/usr/include/c++/13/type_traits:2732:33: error: ‘__b’ was not declared in this scope
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                 ^~~
/usr/include/c++/13/type_traits:2732:38: error: ‘_Nm’ was not declared in this scope
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                      ^~~
/usr/include/c++/13/type_traits:2732:43: error: expected ‘;’ before ‘noexcept’
 2732 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                           ^
      |                                           ;
 2733 |     noexcept(__is_nothrow_swappable<_Tp>::value);
      |     ~~~~~~~~                               
In file included from /usr/include/c++/13/bits/stl_pair.h:61:
/usr/include/c++/13/bits/move.h:205:26: error: ‘size_t’ has not been declared
  205 |   template<typename _Tp, size_t _Nm>
      |                          ^~~~~~
/usr/include/c++/13/bits/move.h:213:21: error: ‘_Nm’ was not declared in this scope
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                     ^~~
/usr/include/c++/13/bits/move.h:213:24: error: ‘template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap’ conflicts with a previous declaration
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                        ^
/usr/include/c++/13/bits/move.h:189:5: note: previous declaration ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)’
  189 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/13/bits/move.h:213:16: error: ‘__a’ was not declared in this scope
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                ^~~
/usr/include/c++/13/bits/move.h:213:21: error: ‘_Nm’ was not declared in this scope
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                     ^~~
/usr/include/c++/13/bits/move.h:213:33: error: ‘__b’ was not declared in this scope
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                 ^~~
/usr/include/c++/13/bits/move.h:213:38: error: ‘_Nm’ was not declared in this scope
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                      ^~~
/usr/include/c++/13/bits/move.h:213:43: error: expected ‘;’ before ‘noexcept’
  213 |     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
      |                                           ^
      |                                           ;
In file included from /usr/include/c++/13/bits/stl_pair.h:62:
/usr/include/c++/13/bits/utility.h:58:12: error: ‘size_t’ has not been declared
   58 |            size_t = tuple_size<_Tp>::value>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:62:56: note: invalid template non-type parameter
   62 |     struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
      |                                                        ^~~
/usr/include/c++/13/bits/utility.h:62:59: error: template argument 1 is invalid
   62 |     struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
      |                                                           ^~
/usr/include/c++/13/bits/utility.h:66:59: note: invalid template non-type parameter
   66 |     struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
      |                                                           ^~~
/usr/include/c++/13/bits/utility.h:66:62: error: template argument 1 is invalid
   66 |     struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
      |                                                              ^~
/usr/include/c++/13/bits/utility.h:70:65: note: invalid template non-type parameter
   70 |     struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
      |                                                                 ^~~
/usr/include/c++/13/bits/utility.h:70:68: error: template argument 1 is invalid
   70 |     struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
      |                                                                    ^~
/usr/include/c++/13/bits/utility.h:79:12: error: ‘size_t’ has not been declared
   79 |   template<size_t __i, typename _Tp>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:80:12: error: no default argument for ‘_Tp’
   80 |     struct tuple_element;
      |            ^~~~~~~~~~~~~
/usr/include/c++/13/bits/utility.h:83:12: error: ‘size_t’ has not been declared
   83 |   template<size_t __i, typename _Tp>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:84:54: error: ‘__i’ was not declared in this scope
   84 |     using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
      |                                                      ^~~
/usr/include/c++/13/bits/utility.h:84:62: error: template argument 1 is invalid
   84 |     using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
      |                                                              ^
/usr/include/c++/13/bits/utility.h:86:12: error: ‘size_t’ has not been declared
   86 |   template<size_t __i, typename _Tp>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:87:26: error: ‘__i’ was not declared in this scope
   87 |     struct tuple_element<__i, const _Tp>
      |                          ^~~
/usr/include/c++/13/bits/utility.h:87:40: error: template argument 1 is invalid
   87 |     struct tuple_element<__i, const _Tp>
      |                                        ^
/usr/include/c++/13/bits/utility.h:92:12: error: ‘size_t’ has not been declared
   92 |   template<size_t __i, typename _Tp>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:93:26: error: ‘__i’ was not declared in this scope
   93 |     struct tuple_element<__i, volatile _Tp>
      |                          ^~~
/usr/include/c++/13/bits/utility.h:93:43: error: template argument 1 is invalid
   93 |     struct tuple_element<__i, volatile _Tp>
      |                                           ^
/usr/include/c++/13/bits/utility.h:98:12: error: ‘size_t’ has not been declared
   98 |   template<size_t __i, typename _Tp>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:99:26: error: ‘__i’ was not declared in this scope
   99 |     struct tuple_element<__i, const volatile _Tp>
      |                          ^~~
/usr/include/c++/13/bits/utility.h:99:49: error: template argument 1 is invalid
   99 |     struct tuple_element<__i, const volatile _Tp>
      |                                                 ^
/usr/include/c++/13/bits/utility.h:140:12: error: ‘size_t’ has not been declared
  140 |   template<size_t... _Indexes> struct _Index_tuple { };
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:143:12: error: ‘size_t’ has not been declared
  143 |   template<size_t _Num>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:154:50: error: ‘_Num’ was not declared in this scope
  154 |       using __type = _Index_tuple<__integer_pack(_Num)...>;
      |                                                  ^~~~
/usr/include/c++/13/bits/utility.h:154:55: error: expected parameter pack before ‘...’
  154 |       using __type = _Index_tuple<__integer_pack(_Num)...>;
      |                                                       ^~~
/usr/include/c++/13/bits/utility.h:154:58: error: template argument 1 is invalid
  154 |       using __type = _Index_tuple<__integer_pack(_Num)...>;
      |                                                          ^
/usr/include/c++/13/bits/utility.h:230:12: error: ‘size_t’ has not been declared
  230 |   template<size_t _Np, typename... _Types>
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:246:12: error: ‘size_t’ has not been declared
  246 |   template<size_t _Np, typename _Tp0, typename _Tp1, typename _Tp2,
      |            ^~~~~~
/usr/include/c++/13/bits/utility.h:251:22: error: ‘_Np’ was not declared in this scope
  251 |     struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...>
      |                      ^~~
/usr/include/c++/13/bits/utility.h:251:53: error: template argument 1 is invalid
  251 |     struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...>
      |                                                     ^
/usr/include/c++/13/bits/utility.h:252:17: error: ‘_Np’ was not declared in this scope
  252 |     : _Nth_type<_Np - 3, _Rest...>
      |                 ^~~
/usr/include/c++/13/bits/utility.h:252:34: error: template argument 1 is invalid
  252 |     : _Nth_type<_Np - 3, _Rest...>
      |                                  ^
/usr/include/c++/13/bits/stl_pair.h:92:12: error: ‘size_t’ has not been declared
   92 |   template<size_t...>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:235:36: error: ‘size_t’ has not been declared
  235 |       template<typename... _Args1, size_t... _Indexes1,
      |                                    ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:236:36: error: ‘size_t’ has not been declared
  236 |                typename... _Args2, size_t... _Indexes2>
      |                                    ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:27: error: ‘_Indexes1’ was not declared in this scope
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                           ^~~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:36: error: expected parameter pack before ‘...’
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                                    ^~~
/usr/include/c++/13/bits/stl_pair.h:239:39: error: template argument 1 is invalid
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                                       ^
/usr/include/c++/13/bits/stl_pair.h:239:55: error: ‘_Indexes2’ was not declared in this scope
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                                                       ^~~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:64: error: expected parameter pack before ‘...’
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                                                                ^~~
/usr/include/c++/13/bits/stl_pair.h:239:67: error: template argument 1 is invalid
  239 |              _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
      |                                                                   ^
/usr/include/c++/13/bits/stl_pair.h:950:32: error: ‘size_t’ was not declared in this scope
  950 |     : public integral_constant<size_t, 2> { };
      |                                ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:63:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   62 | # include <bits/utility.h> // for std::tuple_element, std::tuple_size
  +++ |+#include <cstddef>
   63 | #endif
/usr/include/c++/13/bits/stl_pair.h:950:41: error: template argument 1 is invalid
  950 |     : public integral_constant<size_t, 2> { };
      |                                         ^
/usr/include/c++/13/bits/stl_pair.h:950:41: note: invalid template non-type parameter
/usr/include/c++/13/bits/stl_pair.h:977:12: error: ‘size_t’ has not been declared
  977 |   template<size_t _Int>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1033:12: error: ‘size_t’ has not been declared
 1033 |   template<size_t _Int, class _Tp1, class _Tp2>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1034:38: error: ‘_Int’ was not declared in this scope
 1034 |     constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
      |                                      ^~~~
/usr/include/c++/13/bits/stl_pair.h:1034:59: error: template argument 1 is invalid
 1034 |     constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
      |                                                           ^~
/usr/include/c++/13/bits/stl_pair.h: In function ‘constexpr int& std::get(pair<_Tp1, _Tp2>&)’:
/usr/include/c++/13/bits/stl_pair.h:1036:25: error: ‘_Int’ was not declared in this scope
 1036 |     { return __pair_get<_Int>::__get(__in); }
      |                         ^~~~
/usr/include/c++/13/bits/stl_pair.h:1036:29: error: template argument 1 is invalid
 1036 |     { return __pair_get<_Int>::__get(__in); }
      |                             ^
/usr/include/c++/13/bits/stl_pair.h: At global scope:
/usr/include/c++/13/bits/stl_pair.h:1038:12: error: ‘size_t’ has not been declared
 1038 |   template<size_t _Int, class _Tp1, class _Tp2>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1039:38: error: ‘_Int’ was not declared in this scope
 1039 |     constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
      |                                      ^~~~
/usr/include/c++/13/bits/stl_pair.h:1039:59: error: template argument 1 is invalid
 1039 |     constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
      |                                                           ^~
/usr/include/c++/13/bits/stl_pair.h: In function ‘constexpr int&& std::get(pair<_Tp1, _Tp2>&&)’:
/usr/include/c++/13/bits/stl_pair.h:1041:25: error: ‘_Int’ was not declared in this scope
 1041 |     { return __pair_get<_Int>::__move_get(std::move(__in)); }
      |                         ^~~~
/usr/include/c++/13/bits/stl_pair.h:1041:29: error: template argument 1 is invalid
 1041 |     { return __pair_get<_Int>::__move_get(std::move(__in)); }
      |                             ^
/usr/include/c++/13/bits/stl_pair.h: At global scope:
/usr/include/c++/13/bits/stl_pair.h:1043:12: error: ‘size_t’ has not been declared
 1043 |   template<size_t _Int, class _Tp1, class _Tp2>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1044:44: error: ‘_Int’ was not declared in this scope
 1044 |     constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
      |                                            ^~~~
/usr/include/c++/13/bits/stl_pair.h:1044:65: error: template argument 1 is invalid
 1044 |     constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
      |                                                                 ^~
/usr/include/c++/13/bits/stl_pair.h: In function ‘constexpr const int& std::get(const pair<_Tp1, _Tp2>&)’:
/usr/include/c++/13/bits/stl_pair.h:1046:25: error: ‘_Int’ was not declared in this scope
 1046 |     { return __pair_get<_Int>::__const_get(__in); }
      |                         ^~~~
/usr/include/c++/13/bits/stl_pair.h:1046:29: error: template argument 1 is invalid
 1046 |     { return __pair_get<_Int>::__const_get(__in); }
      |                             ^
/usr/include/c++/13/bits/stl_pair.h: At global scope:
/usr/include/c++/13/bits/stl_pair.h:1048:12: error: ‘size_t’ has not been declared
 1048 |   template<size_t _Int, class _Tp1, class _Tp2>
      |            ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1049:44: error: ‘_Int’ was not declared in this scope
 1049 |     constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
      |                                            ^~~~
/usr/include/c++/13/bits/stl_pair.h:1049:65: error: template argument 1 is invalid
 1049 |     constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
      |                                                                 ^~
/usr/include/c++/13/bits/stl_pair.h: In function ‘constexpr const int&& std::get(const pair<_Tp1, _Tp2>&&)’:
/usr/include/c++/13/bits/stl_pair.h:1051:25: error: ‘_Int’ was not declared in this scope
 1051 |     { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
      |                         ^~~~
/usr/include/c++/13/bits/stl_pair.h:1051:29: error: template argument 1 is invalid
 1051 |     { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
      |                             ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:65:
/usr/include/c++/13/bits/stl_iterator_base_types.h: At global scope:
/usr/include/c++/13/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,
      |                                                                   ^~~~~~~~~
/usr/include/c++/13/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++ -*-
/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_algobase.h:66:
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:112:5: error: ‘ptrdiff_t’ does not name a type
  112 |     ptrdiff_t
      |     ^~~~~~~~~
/usr/include/c++/13/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 | #include <bits/stl_iterator_base_types.h>
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:118:5: error: ‘ptrdiff_t’ does not name a type
  118 |     ptrdiff_t
      |     ^~~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:118:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/include/c++/13/bits/stl_iterator.h:67,
                 from /usr/include/c++/13/bits/stl_algobase.h:67:
/usr/include/c++/13/bits/ptr_traits.h:163:47: error: ‘ptrdiff_t’ was not declared in this scope
  163 |       using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
      |                                               ^~~~~~~~~
/usr/include/c++/13/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++/13/bits/ptr_traits.h:163:72: error: template argument 1 is invalid
  163 |       using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
      |                                                                        ^
/usr/include/c++/13/bits/ptr_traits.h:201:15: error: ‘ptrdiff_t’ does not name a type
  201 |       typedef ptrdiff_t difference_type;
      |               ^~~~~~~~~
/usr/include/c++/13/bits/ptr_traits.h:201:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/bits/stl_algobase.h:93:56: error: ‘size_t’ has not been declared
   93 |     __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num)
      |                                                        ^~~~~~
/usr/include/c++/13/bits/stl_algobase.h: In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*)’:
/usr/include/c++/13/bits/stl_algobase.h:435:17: error: ‘ptrdiff_t’ does not name a type
  435 |           const ptrdiff_t _Num = __last - __first;
      |                 ^~~~~~~~~
/usr/include/c++/13/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++/13/bits/stl_algobase.h:436:32: error: ‘_Num’ was not declared in this scope
  436 |           if (__builtin_expect(_Num > 1, true))
      |                                ^~~~
/usr/include/c++/13/bits/stl_algobase.h:441:29: error: ‘_Num’ was not declared in this scope
  441 |           return __result + _Num;
      |                             ^~~~
/usr/include/c++/13/bits/stl_algobase.h: In static member function ‘static _Up* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(_Tp*, _Tp*, _Up*)’:
/usr/include/c++/13/bits/stl_algobase.h:746:17: error: ‘ptrdiff_t’ does not name a type
  746 |           const ptrdiff_t _Num = __last - __first;
      |                 ^~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:746:17: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/bits/stl_algobase.h:747:32: error: ‘_Num’ was not declared in this scope
  747 |           if (__builtin_expect(_Num > 1, true))
      |                                ^~~~
/usr/include/c++/13/bits/stl_algobase.h:752:29: error: ‘_Num’ was not declared in this scope
  752 |           return __result - _Num;
      |                             ^~~~
/usr/include/c++/13/bits/stl_algobase.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_byte<_Tp>::__value, void>::__type std::__fill_a1(_Tp*, _Tp*, const _Tp&)’:
/usr/include/c++/13/bits/stl_algobase.h:950:24: error: expected initializer before ‘__len’
  950 |       if (const size_t __len = __last - __first)
      |                        ^~~~~
/usr/include/c++/13/bits/stl_algobase.h:950:23: error: expected ‘)’ before ‘__len’
  950 |       if (const size_t __len = __last - __first)
      |          ~            ^~~~~~
      |                       )
/usr/include/c++/13/bits/stl_algobase.h:951:70: error: ‘__len’ was not declared in this scope
  951 |         __builtin_memset(__first, static_cast<unsigned char>(__tmp), __len);
      |                                                                      ^~~~~
/usr/include/c++/13/bits/stl_algobase.h: In static member function ‘static bool std::__equal<true>::equal(const _Tp*, const _Tp*, const _Tp*)’:
/usr/include/c++/13/bits/stl_algobase.h:1184:28: error: expected initializer before ‘__len’
 1184 |           if (const size_t __len = (__last1 - __first1))
      |                            ^~~~~
/usr/include/c++/13/bits/stl_algobase.h:1184:28: error: expected ‘)’ before ‘__len’
/usr/include/c++/13/bits/stl_algobase.h:1184:14: note: to match this ‘(’
 1184 |           if (const size_t __len = (__last1 - __first1))
      |              ^
/usr/include/c++/13/bits/stl_algobase.h:1185:55: error: ‘__len’ was not declared in this scope
 1185 |             return !std::__memcmp(__first1, __first2, __len);
      |                                                       ^~~~~
/usr/include/c++/13/bits/stl_algobase.h: At global scope:
/usr/include/c++/13/bits/stl_algobase.h:1357:16: error: ‘ptrdiff_t’ does not name a type
 1357 |         static ptrdiff_t
      |                ^~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:1357:16: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/include/c++/13/bits/new_allocator.h:34,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/vector:63:
/usr/include/c++/13/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++/13/new:126:44: error: ‘size_t’ is not a member of ‘std’
  126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                            ^~~~~~
/usr/include/c++/13/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  127 |   __attribute__((__externally_visible__));
      |                                         ^
/usr/include/c++/13/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++/13/new:128:46: error: ‘size_t’ is not a member of ‘std’
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                                              ^~~~~~
/usr/include/c++/13/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
  129 |   __attribute__((__externally_visible__));
      |                                         ^
/usr/include/c++/13/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++/13/new:140:44: error: ‘size_t’ is not a member of ‘std’
  140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                            ^~~~~~
/usr/include/c++/13/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++/13/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++/13/new:142:46: error: ‘size_t’ is not a member of ‘std’
  142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
      |                                              ^~~~~~
/usr/include/c++/13/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++/13/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++/13/new:174:51: error: ‘size_t’ is not a member of ‘std’
  174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                   ^~~~~~
/usr/include/c++/13/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++/13/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++/13/new:176:53: error: ‘size_t’ is not a member of ‘std’
  176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                     ^~~~~~
/usr/include/c++/13/new:176:61: error: expected primary-expression before ‘void’
  176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                                             ^~~~
/usr/include/c++/13/bits/new_allocator.h:67:20: error: ‘size_t’ in namespace ‘std’ does not name a type
   67 |       typedef std::size_t     size_type;
      |                    ^~~~~~
/usr/include/c++/13/bits/new_allocator.h:68:20: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
   68 |       typedef std::ptrdiff_t  difference_type;
      |                    ^~~~~~~~~
/usr/include/c++/13/bits/new_allocator.h:126:16: error: ‘size_type’ has not been declared
  126 |       allocate(size_type __n, const void* = static_cast<const void*>(0))
      |                ^~~~~~~~~
/usr/include/c++/13/bits/new_allocator.h:156:28: error: ‘size_type’ has not been declared
  156 |       deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
      |                            ^~~~~~~~~
/usr/include/c++/13/bits/new_allocator.h:181:7: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
  181 |       size_type
      |       ^~~~~~~~~
      |       true_type
/usr/include/c++/13/bits/new_allocator.h:229:26: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
  229 |       _GLIBCXX_CONSTEXPR size_type
      |                          ^~~~~~~~~
      |                          true_type
/usr/include/c++/13/bits/new_allocator.h: In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(int, const void*)’:
/usr/include/c++/13/bits/new_allocator.h:138:29: error: ‘size_t’ is not a member of ‘std’
  138 |             if (__n > (std::size_t(-1) / sizeof(_Tp)))
      |                             ^~~~~~
/usr/include/c++/13/bits/allocator.h: At global scope:
/usr/include/c++/13/bits/allocator.h:79:15: error: ‘size_t’ does not name a type
   79 |       typedef size_t      size_type;
      |               ^~~~~~
/usr/include/c++/13/bits/allocator.h:48:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   47 | #include <bits/memoryfwd.h>
  +++ |+#include <cstddef>
   48 | #if __cplusplus >= 201103L
/usr/include/c++/13/bits/allocator.h:80:15: error: ‘ptrdiff_t’ does not name a type
   80 |       typedef ptrdiff_t   difference_type;
      |               ^~~~~~~~~
/usr/include/c++/13/bits/allocator.h:80:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/bits/allocator.h:134:15: error: ‘size_t’ does not name a type
  134 |       typedef size_t     size_type;
      |               ^~~~~~
/usr/include/c++/13/bits/allocator.h:134:15: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/include/c++/13/bits/allocator.h:135:15: error: ‘ptrdiff_t’ does not name a type
  135 |       typedef ptrdiff_t  difference_type;
      |               ^~~~~~~~~
/usr/include/c++/13/bits/allocator.h:135:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/include/c++/13

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Falkland face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.

Du-te sus!