# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176485 | 2025-03-31 08:00:03 | JungPS | Bosses (BOI16_bosses) | C++17 | Compilation error | 0 ms | 0 KiB |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/a**/
#include <iostream>
#include<cstring>
#include<vector>
#include<queue>
using namespace std;
int vis[5007];
long long cost = 0;
vector<int> vec[5007];
int n,cnt=0;
void bfs(int src)
{
queue< pair<int , int> >q ;
q.push({src , 1}) ;
vis[src] = 1 ;
while(!q.empty())
{
pair<int , int>p = q.front() ;
q.pop() ;
cnt++ ;
int node = p.first ;
cost += (p.second * 1ll) ;
for(auto child : vec[node])
{
if(vis[child] == 1)
continue ;
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation message (stderr)
bosses.cpp:1:1: error: expected unqualified-id before '/' token 1 | /a**/ | ^ In file included from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /usr/include/c++/11/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type 98 | typedef ptrdiff_t streamsize; // Signed integral type | ^~~~~~~~~ /usr/include/c++/11/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'? 40 | #include <cwchar> // For mbstate_t +++ |+#include <cstddef> 41 | 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/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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 'size_t'? 126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 149 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 151 | _GLIBCXX_NODISCARD void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 157 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 159 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 'size_t'? 176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:40, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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'; did you mean 'nullptr_t'? 537 | struct __is_null_pointer_helper<std::nullptr_t> | ^~~~~~~~~ In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38, from /usr/include/c++/11/bits/exception_ptr.h:38, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here 433 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/exception_ptr.h:43, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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:62, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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'; did you mean 'nullptr_t'? 162 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/11/bits/cxxabi_init_exception.h:38, from /usr/include/c++/11/bits/exception_ptr.h:38, from /usr/include/c++/11/exception:153, from /usr/include/c++/11/ios:39, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:433:29: note: 'nullptr_t' declared here 433 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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 116 | static _GLIBCXX14_CONSTEXPR std::size_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 'size_t'? 157 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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 166 | _GLIBCXX14_CONSTEXPR std::size_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 'size_t'? 181 | for (std::size_t __i = 0; __i < __n; ++__i) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /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/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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 59 | typedef std::size_t size_type; | ^~~~~~ /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 'size_t'? 115 | if (__n > (std::size_t(-1) / sizeof(_Tp))) | ^~~~~~ In file included from /usr/include/wchar.h:35, from /usr/include/c++/11/cwchar:44, from /usr/include/c++/11/bits/postypes.h:40, from /usr/include/c++/11/iosfwd:40, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.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/string:44, 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/ostream:38, from /usr/include/c++/11/iostream:39, from bosses.cpp:2: /usr/include/c++/11/bits/ostream_insert.h: At global scope: /usr/include/c++/11/bits/ostream_insert.h:46:40: error: 'streamsize' has not been declared 46 | const _CharT* __s, streamsize __n) | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h: In function 'void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)': /usr/include/c++/11/bits/ostream_insert.h:51:13: error: 'streamsize' does not name a type 51 | const streamsize __put = __out.rdbuf()->sputn(__s, __n); | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h:52:11: error: '__put' was not declared in this scope; did you mean '__out'? 52 | if (__put != __n) | ^~~~~ | __out /usr/include/c++/11/bits/ostream_insert.h: At global scope: /usr/include/c++/11/bits/ostream_insert.h:58:59: error: 'streamsize' has not been declared 58 | __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h:78:41: error: 'streamsize' has not been declared 78 | const _CharT* __s, streamsize __n) | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h: In function 'std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)': /usr/include/c++/11/bits/ostream_insert.h:88:21: error: 'streamsize' does not name a type 88 | const streamsize __w = __out.width(); | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h:89:19: error: '__w' was not declared in this scope; did you mean '__s'? 89 | if (__w > __n) | ^~~ | __s /usr/include/c++/11/bits/ostream_insert.h: At global scope: /usr/include/c++/11/bits/ostream_insert.h:119:68: error: 'streamsize' has not been declared 119 | extern template ostream& __ostream_insert(ostream&, const char*, streamsize); | ^~~~~~~~~~ /usr/include/c++/11/bits/ostream_insert.h:123:46: error: 'streamsize' has not been declared 123 | streamsize); | ^~~~~~~~~~ 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