Submission #44993
ソースコード
ステータス
項目 |
データ |
問題 |
0238 - ナップザック問題(Easy) |
ユーザー名 |
ei1841
|
投稿日時 |
2018-11-15 18:47:13 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
651 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:1: error: ‘include’ does not name a type
include<iostream>
^~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:350:31: error: ‘std::size_t’ has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:351:25: error: ‘_Size’ was not declared in this scope
struct is_array<_Tp[_Size]>
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:351:31: error: template argument 1 is invalid
struct is_array<_Tp[_Size]>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:549:42: error: ‘nullptr_t’ is not a member of ‘std’
struct __is_null_pointer_helper<std::nullptr_t>
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:549:42: error: ‘nullptr_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:549:51: error: template argument 1 is invalid
struct __is_null_pointer_helper<std::nullptr_t>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:61: error: template argument 1 is invalid
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1289:61: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1294:46: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1296:31: error: ‘std::size_t’ has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1297:21: error: ‘_Size’ was not declared in this scope
struct rank<_Tp[_Size]>
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1297:27: error: template argument 1 is invalid
struct rank<_Tp[_Size]>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1298:65: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:65: error: template argument 1 is invalid
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1302:65: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 0> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 0> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1307:46: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1309:47: error: ‘std::size_t’ has not been declared
template<typename _Tp, unsigned _Uint, std::size_t _Size>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1310:23: error: ‘_Size’ was not declared in this scope
struct extent<_Tp[_Size], _Uint>
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1310:36: error: template argument 1 is invalid
struct extent<_Tp[_Size], _Uint>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1311:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t,
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1311:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1311:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t,
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1311:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1312:24: error: ‘_Size’ was not declared in this scope
_Uint == 0 ? _Size : extent<_Tp,
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1313:28: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1313:28: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1318:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t,
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1318:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1318:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t,
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1318:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:55,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1320:31: error: template argument 1 is invalid
_Uint - 1>::value>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1320:31: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1748:31: error: ‘std::size_t’ has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1749:30: error: ‘_Size’ was not declared in this scope
struct remove_extent<_Tp[_Size]>
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1749:36: error: template argument 1 is invalid
struct remove_extent<_Tp[_Size]>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1761:31: error: ‘std::size_t’ has not been declared
template<typename _Tp, std::size_t _Size>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1762:35: error: ‘_Size’ was not declared in this scope
struct remove_all_extents<_Tp[_Size]>
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1762:41: error: template argument 1 is invalid
struct remove_all_extents<_Tp[_Size]>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1820:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Len>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1825:23: error: ‘_Len’ was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1840:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1840:35: error: ‘std::size_t’ has not been declared
template<std::size_t _Len, std::size_t _Align =
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1841:48: error: ‘_Len’ was not declared in this scope
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1841:52: error: template argument 1 is invalid
__alignof__(typename __aligned_storage_msa<_Len>::__type)>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1846:23: error: ‘_Len’ was not declared in this scope
unsigned char __data[_Len];
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/type_traits:1847:37: error: ‘_Align’ was not declared in this scope
struct __attribute__((__aligned__((_Align)))) { } __align;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:86:17: error: ‘std::size_t’ has not been declared
template<std::size_t...>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:429:41: error: ‘std::size_t’ has not been declared
template<typename... _Args1, std::size_t... _Indexes1,
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:430:41: error: ‘std::size_t’ has not been declared
typename... _Args2, std::size_t... _Indexes2>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:27: error: ‘_Indexes1’ was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:36: error: expected parameter pack before ‘...’
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:39: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:55: error: ‘_Indexes2’ was not declared in this scope
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:64: error: expected parameter pack before ‘...’
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:432:67: error: template argument 1 is invalid
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:109:17: error: ‘std::size_t’ has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:110:12: error: no default argument for ‘_Tp’
struct tuple_element;
^~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:113:17: error: ‘std::size_t’ has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:114:54: error: ‘__i’ was not declared in this scope
using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:114:62: error: template argument 1 is invalid
using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:116:17: error: ‘std::size_t’ has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:117:26: error: ‘__i’ was not declared in this scope
struct tuple_element<__i, const _Tp>
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:117:40: error: template argument 1 is invalid
struct tuple_element<__i, const _Tp>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:122:17: error: ‘std::size_t’ has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:123:26: error: ‘__i’ was not declared in this scope
struct tuple_element<__i, volatile _Tp>
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:123:43: error: template argument 1 is invalid
struct tuple_element<__i, volatile _Tp>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:128:17: error: ‘std::size_t’ has not been declared
template<std::size_t __i, typename _Tp>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:129:26: error: ‘__i’ was not declared in this scope
struct tuple_element<__i, const volatile _Tp>
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:129:49: error: template argument 1 is invalid
struct tuple_element<__i, const volatile _Tp>
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 2> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:37: error: ‘size_t’ is not a member of ‘std’
: public integral_constant<std::size_t, 2> { };
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:37: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:46: error: template argument 1 is invalid
: public integral_constant<std::size_t, 2> { };
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:151:46: note: invalid template non-type parameter
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:163:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Int>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:214:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:215:38: error: ‘_Int’ was not declared in this scope
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:215:38: note: suggested alternative: ‘int’
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:215:64: error: template argument 1 is invalid
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: In function ‘constexpr int& std::get(std::pair<_Tp1, _Tp2>&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:217:25: error: ‘_Int’ was not declared in this scope
{ return __pair_get<_Int>::__get(__in); }
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:217:25: note: suggested alternative: ‘int’
{ return __pair_get<_Int>::__get(__in); }
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:217:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__get(__in); }
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:219:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:220:38: error: ‘_Int’ was not declared in this scope
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:220:38: note: suggested alternative: ‘int’
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:220:64: error: template argument 1 is invalid
constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: In function ‘constexpr int&& std::get(std::pair<_Tp1, _Tp2>&&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:222:25: error: ‘_Int’ was not declared in this scope
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:222:25: note: suggested alternative: ‘int’
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:222:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:224:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:225:44: error: ‘_Int’ was not declared in this scope
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:225:44: note: suggested alternative: ‘int’
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:225:70: error: template argument 1 is invalid
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
^~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: In function ‘constexpr const int& std::get(const std::pair<_Tp1, _Tp2>&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:227:25: error: ‘_Int’ was not declared in this scope
{ return __pair_get<_Int>::__const_get(__in); }
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:227:25: note: suggested alternative: ‘int’
{ return __pair_get<_Int>::__const_get(__in); }
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:227:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__const_get(__in); }
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:229:17: error: ‘std::size_t’ has not been declared
template<std::size_t _Int, class _Tp1, class _Tp2>
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:230:44: error: ‘_Int’ was not declared in this scope
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:230:44: note: suggested alternative: ‘int’
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:230:70: error: template argument 1 is invalid
constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
^~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: In function ‘constexpr const int&& std::get(const std::pair<_Tp1, _Tp2>&&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:232:25: error: ‘_Int’ was not declared in this scope
{ return __pair_get<_Int>::__const_move_get(std::move(__in)); }
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:232:25: note: suggested alternative: ‘int’
{ return __pair_get<_Int>::__const_move_get(std::move(__in)); }
^~~~
int
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:232:29: error: template argument 1 is invalid
{ return __pair_get<_Int>::__const_move_get(std::move(__in)); }
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/utility:307:58: note: invalid template non-type parameter
using __type = _Index_tuple<__integer_pack(_Num)...>;
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/type_traits.h:162:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol
__is_null_pointer(std::nullptr_t)
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/type_traits.h:157:5: note: previous declaration ‘template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)’
__is_null_pointer(_Type)
^~~~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/type_traits.h:162:26: error: ‘nullptr_t’ is not a member of ‘std’
__is_null_pointer(std::nullptr_t)
^~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:65,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67: error: ‘ptrdiff_t’ does not name a type
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:1:1:
+#include <cstddef>
// Types used in iterator implementation -*- C++ -*-
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67:
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:182:15: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:182:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:193:15: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:193:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:66,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5: error: ‘ptrdiff_t’ does not name a type
ptrdiff_t
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:66:1:
+#include <cstddef>
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5:
ptrdiff_t
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:116:5: error: ‘ptrdiff_t’ does not name a type
ptrdiff_t
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:116:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator.h:66,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:67,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:104:20: error: ‘ptrdiff_t’ was not declared in this scope
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:104:20: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:1:1:
+#include <cstddef>
// Pointer Traits -*- C++ -*-
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:104:20:
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:104:54: error: template argument 1 is invalid
= __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:130:15: error: ‘ptrdiff_t’ does not name a type
typedef ptrdiff_t difference_type;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ptr_traits.h:130:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10: error: ‘ptrdiff_t’ does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:72:1:
+#include <cstddef>
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10:
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:367:8: error: ‘_Num’ was not declared in this scope
if (_Num)
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:367:8: note: suggested alternative: ‘enum’
if (_Num)
^~~~
enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:369:22: error: ‘_Num’ was not declared in this scope
return __result + _Num;
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:369:22: note: suggested alternative: ‘enum’
return __result + _Num;
^~~~
enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:568:10: error: ‘ptrdiff_t’ does not name a type
const ptrdiff_t _Num = __last - __first;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:568:10: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:569:8: error: ‘_Num’ was not declared in this scope
if (_Num)
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:569:8: note: suggested alternative: ‘enum’
if (_Num)
^~~~
enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:571:22: error: ‘_Num’ was not declared in this scope
return __result - _Num;
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:571:22: note: suggested alternative: ‘enum’
return __result - _Num;
^~~~
enum
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:31: error: declaration of ‘operator new’ as non-function
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:25: error: ‘size_t’ is not a member of ‘std’
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:25: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:121:41: error: attributes after parenthesized initializer ignored [-fpermissive]
__attribute__((__externally_visible__));
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:33: error: declaration of ‘operator new []’ as non-function
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:27: error: ‘size_t’ is not a member of ‘std’
void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:27: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:123:41: error: attributes after parenthesized initializer ignored [-fpermissive]
__attribute__((__externally_visible__));
^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: error: declaration of ‘operator new’ as non-function
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:33: error: expected primary-expression before ‘const’
void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: error: declaration of ‘operator new []’ as non-function
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:35: error: expected primary-expression before ‘const’
void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: error: declaration of ‘operator new’ as non-function
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:40: error: expected primary-expression before ‘void’
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: error: declaration of ‘operator new []’ as non-function
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: note: suggested alternative:
In file included from /usr/include/stdio.h:34,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdio:42,
from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note: ‘size_t’
typedef __SIZE_TYPE__ size_t;
^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:42: error: expected primary-expression before ‘void’
inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h:36,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:61,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:404:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
using difference_type = std::ptrdiff_t;
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:407:30: error: ‘size_t’ in namespace ‘std’ does not name a type
using size_type = std::size_t;
^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:435:37: error: ‘size_type’ has not been declared
allocate(allocator_type& __a, size_type __n)
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:449:37: error: ‘size_type’ has not been declared
allocate(allocator_type& __a, size_type __n, const_void_pointer __hint)
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:461:52: error: ‘size_type’ has not been declared
deallocate(allocator_type& __a, pointer __p, size_type __n)
^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/alloc_traits.h:494:14: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
static size_type
^~~~~~~~~
true_type
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
from ./Main.cpp:4:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h: In function ‘std::pair<_Tp*, long int> std::get_temporary_buffer(ptrdiff_t)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:95:20: error: too many arguments to function ‘void* operator new(long unsigned int)’
std::nothrow));
^
セット
テストケース