Main.cc:1:1: error: ‘include’ does not name a type include ^~~~~~~ In file included from /usr/include/c++/7/iosfwd:40:0, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/include/c++/7/bits/postypes.h:98:11: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t streamsize; // Signed integral type ^~~~~~~~~ In file included from /usr/include/c++/7/bits/stl_algobase.h:62:0, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/ext/type_traits.h:162:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol __is_null_pointer(std::nullptr_t) ^ /usr/include/c++/7/ext/type_traits.h:157:5: note: previous declaration ‘template bool __gnu_cxx::__is_null_pointer(_Type)’ __is_null_pointer(_Type) ^~~~~~~~~~~~~~~~~ /usr/include/c++/7/ext/type_traits.h:162:26: error: ‘nullptr_t’ is not a member of ‘std’ __is_null_pointer(std::nullptr_t) ^~~~~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:362:31: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:363:25: error: ‘_Size’ was not declared in this scope struct is_array<_Tp[_Size]> ^~~~~ /usr/include/c++/7/type_traits:363:25: note: suggested alternative: ‘dysize’ struct is_array<_Tp[_Size]> ^~~~~ dysize /usr/include/c++/7/type_traits:363:31: error: template argument 1 is invalid struct is_array<_Tp[_Size]> ^ /usr/include/c++/7/type_traits:561:42: error: ‘nullptr_t’ is not a member of ‘std’ struct __is_null_pointer_helper ^~~~~~~~~ /usr/include/c++/7/type_traits:561:42: error: ‘nullptr_t’ is not a member of ‘std’ /usr/include/c++/7/type_traits:561:51: error: template argument 1 is invalid struct __is_null_pointer_helper ^ /usr/include/c++/7/type_traits:1464:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1464:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1464:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1464:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1464:61: error: template argument 1 is invalid : public integral_constant { }; ^ /usr/include/c++/7/type_traits:1464:61: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1469:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1469:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1469:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1469:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1469:46: error: template argument 1 is invalid : public integral_constant { }; ^ /usr/include/c++/7/type_traits:1469:46: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1471:31: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:1472:21: error: ‘_Size’ was not declared in this scope struct rank<_Tp[_Size]> ^~~~~ /usr/include/c++/7/type_traits:1472:21: note: suggested alternative: ‘dysize’ struct rank<_Tp[_Size]> ^~~~~ dysize /usr/include/c++/7/type_traits:1472:27: error: template argument 1 is invalid struct rank<_Tp[_Size]> ^ /usr/include/c++/7/type_traits:1473:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> { }; ^~~~~~ /usr/include/c++/7/type_traits:1473:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1473:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> { }; ^~~~~~ /usr/include/c++/7/type_traits:1473:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1473:65: error: template argument 1 is invalid : public integral_constant::value> { }; ^ /usr/include/c++/7/type_traits:1473:65: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1477:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> { }; ^~~~~~ /usr/include/c++/7/type_traits:1477:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1477:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> { }; ^~~~~~ /usr/include/c++/7/type_traits:1477:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1477:65: error: template argument 1 is invalid : public integral_constant::value> { }; ^ /usr/include/c++/7/type_traits:1477:65: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1482:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1482:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1482:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant { }; ^~~~~~ /usr/include/c++/7/type_traits:1482:37: note: suggested alternative: In file included from /usr/include/wchar.h:35:0, from /usr/include/c++/7/cwchar:44, from /usr/include/c++/7/bits/postypes.h:40, from /usr/include/c++/7/iosfwd:40, from /usr/include/c++/7/iomanip:39, from Main.cc:2: /usr/lib/gcc/x86_64-linux-gnu/7/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^~~~~~ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/bits/stl_algobase.h:64, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/type_traits:1482:46: error: template argument 1 is invalid : public integral_constant { }; ^ /usr/include/c++/7/type_traits:1482:46: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1484:47: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:1485:23: error: ‘_Size’ was not declared in this scope struct extent<_Tp[_Size], _Uint> ^~~~~ /usr/include/c++/7/type_traits:1485:36: error: template argument 1 is invalid struct extent<_Tp[_Size], _Uint> ^ /usr/include/c++/7/type_traits:1486:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> ^ /usr/include/c++/7/type_traits:1488:28: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1493:37: error: ‘size_t’ is not a member of ‘std’ : public integral_constant::value> ^ /usr/include/c++/7/type_traits:1495:31: note: invalid template non-type parameter /usr/include/c++/7/type_traits:1944:31: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:1945:30: error: ‘_Size’ was not declared in this scope struct remove_extent<_Tp[_Size]> ^~~~~ /usr/include/c++/7/type_traits:1945:30: note: suggested alternative: ‘dysize’ struct remove_extent<_Tp[_Size]> ^~~~~ dysize /usr/include/c++/7/type_traits:1945:36: error: template argument 1 is invalid struct remove_extent<_Tp[_Size]> ^ /usr/include/c++/7/type_traits:1957:31: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:1958:35: error: ‘_Size’ was not declared in this scope struct remove_all_extents<_Tp[_Size]> ^~~~~ /usr/include/c++/7/type_traits:1958:35: note: suggested alternative: ‘dysize’ struct remove_all_extents<_Tp[_Size]> ^~~~~ dysize /usr/include/c++/7/type_traits:1958:41: error: template argument 1 is invalid struct remove_all_extents<_Tp[_Size]> ^ /usr/include/c++/7/type_traits:2016:17: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/type_traits:2021:23: error: ‘_Len’ was not declared in this scope unsigned char __data[_Len]; ^~~~ /usr/include/c++/7/type_traits:2036:17: error: ‘std::size_t’ has not been declared template::__type)> ^~~~ /usr/include/c++/7/type_traits:2037:52: error: template argument 1 is invalid __alignof__(typename __aligned_storage_msa<_Len>::__type)> ^ /usr/include/c++/7/type_traits:2042:23: error: ‘_Len’ was not declared in this scope unsigned char __data[_Len]; ^~~~ /usr/include/c++/7/type_traits:2043:37: error: ‘_Align’ was not declared in this scope struct __attribute__((__aligned__((_Align)))) { } __align; ^~~~~~ In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/bits/stl_pair.h:86:17: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/bits/stl_pair.h:434:41: error: ‘std::size_t’ has not been declared template ^~~~~~ /usr/include/c++/7/bits/stl_pair.h:437:27: error: ‘_Indexes1’ was not declared in this scope _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~~~~~~~ /usr/include/c++/7/bits/stl_pair.h:437:27: note: suggested alternative: ‘_Index_tuple’ _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~~~~~~~ _Index_tuple /usr/include/c++/7/bits/stl_pair.h:437:36: error: expected parameter pack before ‘...’ _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~ /usr/include/c++/7/bits/stl_pair.h:437:39: error: template argument 1 is invalid _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^ /usr/include/c++/7/bits/stl_pair.h:437:55: error: ‘_Indexes2’ was not declared in this scope _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~~~~~~~ /usr/include/c++/7/bits/stl_pair.h:437:55: note: suggested alternative: ‘_Index_tuple’ _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~~~~~~~ _Index_tuple /usr/include/c++/7/bits/stl_pair.h:437:64: error: expected parameter pack before ‘...’ _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^~~ /usr/include/c++/7/bits/stl_pair.h:437:67: error: template argument 1 is invalid _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); ^ In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0, from /usr/include/c++/7/bits/char_traits.h:39, from /usr/include/c++/7/string:40, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/iomanip:40, from Main.cc:2: /usr/include/c++/7/bits/stl_iterator_base_types.h:116:67: error: ‘ptrdiff_t’ does not name a type template