Algoritmų sudėtingumas

Taškai: 0

Compile: FAIL

alg.cpp:1:2: error: stray ‘#’ in program 1#include <iostream> ^ alg.cpp:21:11: error: stray ‘#’ in program in>>n;#include <iostream> ^ alg.cpp:1:1: error: expected unqualified-id before numeric constant 1#include <iostream> ^ In file included from /usr/include/c++/5/iosfwd:40:0, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/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++/5/exception:162:0, from /usr/include/c++/5/ios:39, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/exception_ptr.h:95:30: error: field ‘nullptr_t’ has incomplete type ‘std::__exception_ptr::exception_ptr’ exception_ptr(nullptr_t) noexcept ^ /usr/include/c++/5/bits/exception_ptr.h:75:11: note: definition of ‘class std::__exception_ptr::exception_ptr’ is not complete until the closing brace class exception_ptr ^ /usr/include/c++/5/bits/exception_ptr.h:95:30: error: expected ‘;’ at end of member declaration exception_ptr(nullptr_t) noexcept ^ /usr/include/c++/5/bits/exception_ptr.h:95:32: error: expected unqualified-id before ‘noexcept’ exception_ptr(nullptr_t) noexcept ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:62:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/type_traits.h:160:35: error: ‘__gnu_cxx::__is_null_pointer’ declared as an ‘inline’ variable __is_null_pointer(std::nullptr_t) ^ /usr/include/c++/5/ext/type_traits.h:160:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol /usr/include/c++/5/ext/type_traits.h:155:5: note: previous declaration ‘template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)’ __is_null_pointer(_Type) ^ /usr/include/c++/5/ext/type_traits.h:160:21: error: ‘nullptr_t’ is not a member of ‘std’ __is_null_pointer(std::nullptr_t) ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:326:31: error: ‘std::size_t’ has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/5/type_traits:525:37: error: ‘nullptr_t’ is not a member of ‘std’ struct __is_null_pointer_helper<std::nullptr_t> ^ /usr/include/c++/5/type_traits:525:37: error: ‘nullptr_t’ is not a member of ‘std’ /usr/include/c++/5/type_traits:525:51: error: template argument 1 is invalid struct __is_null_pointer_helper<std::nullptr_t> ^ /usr/include/c++/5/type_traits:1411:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/5/type_traits:1411:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1411:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/5/type_traits:1411:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1411:61: error: template argument 1 is invalid : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/5/type_traits:1411:61: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1416:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1416:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1416:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1416:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1416:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1416:46: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1418:31: error: ‘std::size_t’ has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/5/type_traits:1420:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1420:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1420:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1420:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1420:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1420:65: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1424:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1424:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1424:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1424:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1424:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/5/type_traits:1424:65: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1429:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1429:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1429:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1429:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1429:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/5/type_traits:1429:46: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1431:47: error: ‘std::size_t’ has not been declared template<typename _Tp, unsigned _Uint, std::size_t _Size> ^ /usr/include/c++/5/type_traits:1433:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, ^ /usr/include/c++/5/type_traits:1433:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1433:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, ^ /usr/include/c++/5/type_traits:1433:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1435:28: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/5/type_traits:1435:28: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1440:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, ^ /usr/include/c++/5/type_traits:1440:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1440:32: error: ‘size_t’ is not a member of ‘std’ : public integral_constant<std::size_t, ^ /usr/include/c++/5/type_traits:1440:32: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/type_traits:1442:31: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/5/type_traits:1442:31: note: invalid template non-type parameter /usr/include/c++/5/type_traits:1892:31: error: ‘std::size_t’ has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/5/type_traits:1905:31: error: ‘std::size_t’ has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/5/type_traits:1964:17: error: ‘std::size_t’ has not been declared template<std::size_t _Len> ^ /usr/include/c++/5/type_traits:1984:17: error: ‘std::size_t’ has not been declared template<std::size_t _Len, std::size_t _Align = ^ /usr/include/c++/5/type_traits:1984:35: error: ‘std::size_t’ has not been declared template<std::size_t _Len, std::size_t _Align = ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/stl_pair.h:85:17: error: ‘std::size_t’ has not been declared template<std::size_t...> ^ /usr/include/c++/5/bits/stl_pair.h:204:41: error: ‘std::size_t’ has not been declared template<typename... _Args1, std::size_t... _Indexes1, ^ /usr/include/c++/5/bits/stl_pair.h:205:41: error: ‘std::size_t’ has not been declared typename... _Args2, std::size_t... _Indexes2> ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:65:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/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/include/c++/5/bits/stl_iterator_base_types.h:182:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/5/bits/stl_iterator_base_types.h:193:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/5/bits/stl_iterator.h:66:0, from /usr/include/c++/5/bits/stl_algobase.h:67, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/ptr_traits.h:69:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t __type; ^ /usr/include/c++/5/bits/ptr_traits.h:157:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)’: /usr/include/c++/5/bits/stl_algobase.h:382:10: error: ‘ptrdiff_t’ does not name a type const ptrdiff_t _Num = __last - __first; ^ /usr/include/c++/5/bits/stl_algobase.h:383:8: error: ‘_Num’ was not declared in this scope if (_Num) ^ /usr/include/c++/5/bits/stl_algobase.h:385:22: error: ‘_Num’ was not declared in this scope return __result + _Num; ^ /usr/include/c++/5/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)’: /usr/include/c++/5/bits/stl_algobase.h:584:10: error: ‘ptrdiff_t’ does not name a type const ptrdiff_t _Num = __last - __first; ^ /usr/include/c++/5/bits/stl_algobase.h:585:8: error: ‘_Num’ was not declared in this scope if (_Num) ^ /usr/include/c++/5/bits/stl_algobase.h:587:22: error: ‘_Num’ was not declared in this scope return __result - _Num; ^ In file included from /usr/include/c++/5/ios:40:0, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/char_traits.h: At global scope: /usr/include/c++/5/bits/char_traits.h:104:66: error: ‘std::size_t’ has not been declared compare(const char_type* __s1, const char_type* __s2, std::size_t __n); ^ /usr/include/c++/5/bits/char_traits.h:106:19: error: ‘size_t’ in namespace ‘std’ does not name a type static std::size_t ^ /usr/include/c++/5/bits/char_traits.h:110:39: error: ‘std::size_t’ has not been declared find(const char_type* __s, std::size_t __n, const char_type& __a); ^ /usr/include/c++/5/bits/char_traits.h:113:57: error: ‘std::size_t’ has not been declared move(char_type* __s1, const char_type* __s2, std::size_t __n); ^ /usr/include/c++/5/bits/char_traits.h:116:57: error: ‘std::size_t’ has not been declared copy(char_type* __s1, const char_type* __s2, std::size_t __n); ^ /usr/include/c++/5/bits/char_traits.h:119:35: error: ‘std::size_t’ has not been declared assign(char_type* __s, std::size_t __n, char_type __a); ^ /usr/include/c++/5/bits/char_traits.h:145:64: error: ‘std::size_t’ has not been declared compare(const char_type* __s1, const char_type* __s2, std::size_t __n) ^ /usr/include/c++/5/bits/char_traits.h: In static member function ‘static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)’: /usr/include/c++/5/bits/char_traits.h:147:12: error: ‘size_t’ is not a member of ‘std’ for (std::size_t __i = 0; __i < __n; ++__i) ^ /usr/include/c++/5/bits/char_traits.h:147:12: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ios:40:0, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/char_traits.h:147:33: error: ‘__i’ was not declared in this scope for (std::size_t __i = 0; __i < __n; ++__i) ^ /usr/include/c++/5/bits/char_traits.h: At global scope: /usr/include/c++/5/bits/char_traits.h:156:10: error: ‘size_t’ in namespace ‘std’ does not name a type std::size_t ^ /usr/include/c++/5/bits/char_traits.h:169:37: error: ‘std::size_t’ has not been declared find(const char_type* __s, std::size_t __n, const char_type& __a) ^ /usr/include/c++/5/bits/char_traits.h: In static member function ‘static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)’: /usr/include/c++/5/bits/char_traits.h:171:12: error: ‘size_t’ is not a member of ‘std’ for (std::size_t __i = 0; __i < __n; ++__i) ^ /usr/include/c++/5/bits/char_traits.h:171:12: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ios:40:0, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/char_traits.h:171:33: error: ‘__i’ was not declared in this scope for (std::size_t __i = 0; __i < __n; ++__i) ^ /usr/include/c++/5/bits/char_traits.h: At global scope: /usr/include/c++/5/bits/char_traits.h:180:55: error: ‘std::size_t’ has not been declared move(char_type* __s1, const char_type* __s2, std::size_t __n) ^ /usr/include/c++/5/bits/char_traits.h:189:55: error: ‘std::size_t’ has not been declared copy(char_type* __s1, const char_type* __s2, std::size_t __n) ^ /usr/include/c++/5/bits/char_traits.h:199:33: error: ‘std::size_t’ has not been declared assign(char_type* __s, std::size_t __n, char_type __a) ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:111:31: error: declaration of ‘operator new’ as non-function void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/5/new:111:20: error: ‘size_t’ is not a member of ‘std’ void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/5/new:111:20: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:113:33: error: declaration of ‘operator new []’ as non-function void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/5/new:113:22: error: ‘size_t’ is not a member of ‘std’ void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/5/new:113:22: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:119:25: error: declaration of ‘operator new’ as non-function void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:119:20: error: ‘size_t’ is not a member of ‘std’ void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:119:20: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:119:33: error: expected primary-expression before ‘const’ void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:121:27: error: declaration of ‘operator new []’ as non-function void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:121:22: error: ‘size_t’ is not a member of ‘std’ void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:121:22: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:121:35: error: expected primary-expression before ‘const’ void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:129:32: error: declaration of ‘operator new’ as non-function inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:129:27: error: ‘size_t’ is not a member of ‘std’ inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:129:27: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:129:40: error: expected primary-expression before ‘void’ inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:131:34: error: declaration of ‘operator new []’ as non-function inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:131:29: error: ‘size_t’ is not a member of ‘std’ inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/5/new:131:29: note: suggested alternative: In file included from /usr/include/wchar.h:51:0, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/iosfwd:40, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:216:23: note: ‘size_t’ typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/c++/5/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/new:131:42: error: expected primary-expression before ‘void’ inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33:0, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/string:41, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/new_allocator.h:44:14: error: ‘std::size_t’ has not been declared using std::size_t; ^ /usr/include/c++/5/ext/new_allocator.h:45:14: error: ‘std::ptrdiff_t’ has not been declared using std::ptrdiff_t; ^ /usr/include/c++/5/ext/new_allocator.h:62:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/5/string:41:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/allocator.h:67:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/5/bits/allocator.h:96:15: error: ‘ptrdiff_t’ does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/5/string:44:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/ostream_insert.h:45:26: error: ‘streamsize’ has not been declared const _CharT* __s, streamsize __n) ^ /usr/include/c++/5/bits/ostream_insert.h: In function ‘void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’: /usr/include/c++/5/bits/ostream_insert.h:50:13: error: ‘streamsize’ does not name a type const streamsize __put = __out.rdbuf()->sputn(__s, __n); ^ /usr/include/c++/5/bits/ostream_insert.h:51:11: error: ‘__put’ was not declared in this scope if (__put != __n) ^ /usr/include/c++/5/bits/ostream_insert.h: At global scope: /usr/include/c++/5/bits/ostream_insert.h:57:59: error: ‘streamsize’ has not been declared __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) ^ /usr/include/c++/5/bits/ostream_insert.h:77:27: error: ‘streamsize’ has not been declared const _CharT* __s, streamsize __n) ^ /usr/include/c++/5/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++/5/bits/ostream_insert.h:87:14: error: ‘streamsize’ does not name a type const streamsize __w = __out.width(); ^ /usr/include/c++/5/bits/ostream_insert.h:88:12: error: ‘__w’ was not declared in this scope if (__w > __n) ^ /usr/include/c++/5/bits/ostream_insert.h: At global scope: /usr/include/c++/5/bits/ostream_insert.h:118:68: error: ‘streamsize’ has not been declared extern template ostream& __ostream_insert(ostream&, const char*, streamsize); ^ /usr/include/c++/5/bits/ostream_insert.h:122:11: error: ‘streamsize’ has not been declared streamsize); ^ In file included from /usr/include/c++/5/ext/alloc_traits.h:36:0, from /usr/include/c++/5/bits/basic_string.h:40, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/alloc_traits.h:462:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type using difference_type = std::ptrdiff_t; ^ /usr/include/c++/5/bits/alloc_traits.h:465:30: error: ‘size_t’ in namespace ‘std’ does not name a type using size_type = std::size_t; ^ /usr/include/c++/5/bits/alloc_traits.h:490:37: error: ‘size_type’ has not been declared allocate(allocator_type& __a, size_type __n) ^ /usr/include/c++/5/bits/alloc_traits.h:504:37: error: ‘size_type’ has not been declared allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) ^ /usr/include/c++/5/bits/alloc_traits.h:516:52: error: ‘size_type’ has not been declared deallocate(allocator_type& __a, pointer __p, size_type __n) ^ /usr/include/c++/5/bits/alloc_traits.h:549:14: error: ‘size_type’ does not name a type static size_type ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:55:51: error: ‘std::size_t’ has not been declared const char* __name, const _CharT* __str, std::size_t* __idx, ^ /usr/include/c++/5/ext/string_conversions.h:83:48: error: ‘std::size_t’ has not been declared __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:84:31: error: ‘std::size_t’ has not been declared __builtin_va_list), std::size_t __n, ^ In file included from /usr/include/c++/5/bits/basic_string.h:40:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char> >’: /usr/include/c++/5/bits/basic_string.h:74:24: required from ‘class std::__cxx11::basic_string<char>’ /usr/include/c++/5/bits/basic_string.h:5259:68: required from here /usr/include/c++/5/ext/alloc_traits.h:106:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator<char> >’ typedef typename _Base_type::size_type size_type; ^ /usr/include/c++/5/ext/alloc_traits.h:107:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator<char> >’ typedef typename _Base_type::difference_type difference_type; ^ /usr/include/c++/5/ext/alloc_traits.h:115:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char> >::_Base_type {aka std::allocator_traits<std::allocator<char> >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char> >::_Base_type {aka struct std::allocator_traits<std::allocator<char> >}’ using _Base_type::max_size; ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In function ‘int std::__cxx11::stoi(const string&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5260:19: error: no matching function for call to ‘__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5260:19: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long int std::__cxx11::stol(const string&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5265:22: error: no matching function for call to ‘__stoa(long int (*)(const char*, char**, int) throw (), const char [5], const char*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5265:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long unsigned int std::__cxx11::stoul(const string&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5270:22: error: no matching function for call to ‘__stoa(long unsigned int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5270:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const string&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5275:22: error: no matching function for call to ‘__stoa(long long int (*)(const char*, char**, int) throw (), const char [6], const char*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5275:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long long unsigned int std::__cxx11::stoull(const string&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5280:22: error: no matching function for call to ‘__stoa(long long unsigned int (*)(const char*, char**, int) throw (), const char [7], const char*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5280:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘float std::__cxx11::stof(const string&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5285:72: error: no matching function for call to ‘__stoa(float (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)’ { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5285:72: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘double std::__cxx11::stod(const string&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5289:72: error: no matching function for call to ‘__stoa(double (*)(const char*, char**) throw (), const char [5], const char*, size_t*&)’ { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5289:72: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long double std::__cxx11::stold(const string&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5293:74: error: no matching function for call to ‘__stoa(long double (*)(const char*, char**) throw (), const char [6], const char*, size_t*&)’ { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5293:74: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(int)’: /usr/include/c++/5/bits/basic_string.h:5301:20: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [3], int&)’ "%d", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5301:20: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%d", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5307:20: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [3], unsigned int&)’ "%u", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5307:20: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%u", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(long int)’: /usr/include/c++/5/bits/basic_string.h:5312:21: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [4], long int&)’ "%ld", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5312:21: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%ld", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(long unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5318:21: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [4], long unsigned int&)’ "%lu", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5318:21: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%lu", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(long long int)’: /usr/include/c++/5/bits/basic_string.h:5324:22: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [5], long long int&)’ "%lld", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5324:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%lld", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(long long unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5330:22: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), long unsigned int, const char [5], long long unsigned int&)’ "%llu", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5330:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%llu", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(float)’: /usr/include/c++/5/bits/basic_string.h:5338:20: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [3], float&)’ "%f", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5338:20: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%f", __val); ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(double)’: /usr/include/c++/5/bits/basic_string.h:5347:20: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [3], double&)’ "%f", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5347:20: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%f", __val); ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::string std::__cxx11::to_string(long double)’: /usr/include/c++/5/bits/basic_string.h:5356:21: error: no matching function for call to ‘__to_xstring(int (*)(char*, size_t, const char*, __va_list_tag*) throw (), const int&, const char [4], long double&)’ "%Lf", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5356:21: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ "%Lf", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:40:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t> >’: /usr/include/c++/5/bits/basic_string.h:74:24: required from ‘class std::__cxx11::basic_string<wchar_t>’ /usr/include/c++/5/bits/basic_string.h:5362:68: required from here /usr/include/c++/5/ext/alloc_traits.h:106:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator<wchar_t> >’ typedef typename _Base_type::size_type size_type; ^ /usr/include/c++/5/ext/alloc_traits.h:107:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator<wchar_t> >’ typedef typename _Base_type::difference_type difference_type; ^ /usr/include/c++/5/ext/alloc_traits.h:115:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t> >::_Base_type {aka std::allocator_traits<std::allocator<wchar_t> >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t> >::_Base_type {aka struct std::allocator_traits<std::allocator<wchar_t> >}’ using _Base_type::max_size; ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In function ‘int std::__cxx11::stoi(const wstring&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5363:19: error: no matching function for call to ‘__stoa(long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [5], const wchar_t*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5363:19: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long int std::__cxx11::stol(const wstring&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5368:22: error: no matching function for call to ‘__stoa(long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [5], const wchar_t*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5368:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long unsigned int std::__cxx11::stoul(const wstring&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5373:22: error: no matching function for call to ‘__stoa(long unsigned int (*)(const wchar_t*, wchar_t**, int) throw (), const char [6], const wchar_t*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5373:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long long int std::__cxx11::stoll(const wstring&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5378:22: error: no matching function for call to ‘__stoa(long long int (*)(const wchar_t*, wchar_t**, int) throw (), const char [6], const wchar_t*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5378:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long long unsigned int std::__cxx11::stoull(const wstring&, size_t*, int)’: /usr/include/c++/5/bits/basic_string.h:5383:22: error: no matching function for call to ‘__stoa(long long unsigned int (*)(const wchar_t*, wchar_t**, int) throw (), const char [7], const wchar_t*, size_t*&, int&)’ __idx, __base); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5383:22: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ __idx, __base); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘float std::__cxx11::stof(const wstring&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5388:72: error: no matching function for call to ‘__stoa(float (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)’ { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5388:72: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘double std::__cxx11::stod(const wstring&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5392:72: error: no matching function for call to ‘__stoa(double (*)(const wchar_t*, wchar_t**) throw (), const char [5], const wchar_t*, size_t*&)’ { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5392:72: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘long double std::__cxx11::stold(const wstring&, size_t*)’: /usr/include/c++/5/bits/basic_string.h:5396:74: error: no matching function for call to ‘__stoa(long double (*)(const wchar_t*, wchar_t**) throw (), const char [6], const wchar_t*, size_t*&)’ { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, int*, _Base ...) __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), ^ /usr/include/c++/5/ext/string_conversions.h:54:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5396:74: note: cannot convert ‘__idx’ (type ‘size_t* {aka long unsigned int*}’) to type ‘int*’ { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(int)’: /usr/include/c++/5/bits/basic_string.h:5403:22: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [3], int&)’ L"%d", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5403:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%d", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5409:22: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [3], unsigned int&)’ L"%u", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5409:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%u", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(long int)’: /usr/include/c++/5/bits/basic_string.h:5414:23: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [4], long int&)’ L"%ld", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5414:23: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%ld", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(long unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5420:23: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [4], long unsigned int&)’ L"%lu", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5420:23: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%lu", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(long long int)’: /usr/include/c++/5/bits/basic_string.h:5426:24: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [5], long long int&)’ L"%lld", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5426:24: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%lld", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(long long unsigned int)’: /usr/include/c++/5/bits/basic_string.h:5432:24: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), long unsigned int, const wchar_t [5], long long unsigned int&)’ L"%llu", __val); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5432:24: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%llu", __val); } ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(float)’: /usr/include/c++/5/bits/basic_string.h:5440:22: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [3], float&)’ L"%f", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5440:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%f", __val); ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(double)’: /usr/include/c++/5/bits/basic_string.h:5449:22: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [3], double&)’ L"%f", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5449:22: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%f", __val); ^ /usr/include/c++/5/bits/basic_string.h: In function ‘std::__cxx11::wstring std::__cxx11::to_wstring(long double)’: /usr/include/c++/5/bits/basic_string.h:5458:23: error: no matching function for call to ‘__to_xstring(int (*)(wchar_t*, size_t, const wchar_t*, __va_list_tag*) throw (), const int&, const wchar_t [4], long double&)’ L"%Lf", __val); ^ In file included from /usr/include/c++/5/bits/basic_string.h:5249:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/string_conversions.h:83:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, int, const _CharT*, __va_list_tag*), int, const _CharT*, ...) __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, ^ /usr/include/c++/5/ext/string_conversions.h:83:5: note: template argument deduction/substitution failed: In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h:5458:23: note: mismatched types ‘int’ and ‘size_t {aka long unsigned int}’ L"%Lf", __val); ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In member function ‘size_t std::hash<std::__cxx11::basic_string<char> >::operator()(const string&) const’: /usr/include/c++/5/bits/basic_string.h:5487:54: error: ‘const string {aka const class std::__cxx11::basic_string<char>}’ has no member named ‘length’ { return std::_Hash_impl::hash(__s.data(), __s.length()); } ^ /usr/include/c++/5/bits/basic_string.h: In member function ‘size_t std::hash<std::__cxx11::basic_string<wchar_t> >::operator()(const wstring&) const’: /usr/include/c++/5/bits/basic_string.h:5503:42: error: ‘const wstring {aka const class std::__cxx11::basic_string<wchar_t>}’ has no member named ‘length’ __s.length() * sizeof(wchar_t)); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:40:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char16_t> >’: /usr/include/c++/5/bits/basic_string.h:74:24: required from ‘class std::__cxx11::basic_string<char16_t>’ /usr/include/c++/5/bits/basic_string.h:5520:41: required from here /usr/include/c++/5/ext/alloc_traits.h:106:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator<char16_t> >’ typedef typename _Base_type::size_type size_type; ^ /usr/include/c++/5/ext/alloc_traits.h:107:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator<char16_t> >’ typedef typename _Base_type::difference_type difference_type; ^ /usr/include/c++/5/ext/alloc_traits.h:115:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char16_t> >::_Base_type {aka std::allocator_traits<std::allocator<char16_t> >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char16_t> >::_Base_type {aka struct std::allocator_traits<std::allocator<char16_t> >}’ using _Base_type::max_size; ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In member function ‘size_t std::hash<std::__cxx11::basic_string<char16_t> >::operator()(const u16string&) const’: /usr/include/c++/5/bits/basic_string.h:5521:42: error: ‘const u16string {aka const class std::__cxx11::basic_string<char16_t>}’ has no member named ‘length’ __s.length() * sizeof(char16_t)); } ^ In file included from /usr/include/c++/5/bits/basic_string.h:40:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char32_t> >’: /usr/include/c++/5/bits/basic_string.h:74:24: required from ‘class std::__cxx11::basic_string<char32_t>’ /usr/include/c++/5/bits/basic_string.h:5535:41: required from here /usr/include/c++/5/ext/alloc_traits.h:106:53: error: no type named ‘size_type’ in ‘struct std::allocator_traits<std::allocator<char32_t> >’ typedef typename _Base_type::size_type size_type; ^ /usr/include/c++/5/ext/alloc_traits.h:107:53: error: no type named ‘difference_type’ in ‘struct std::allocator_traits<std::allocator<char32_t> >’ typedef typename _Base_type::difference_type difference_type; ^ /usr/include/c++/5/ext/alloc_traits.h:115:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char32_t> >::_Base_type {aka std::allocator_traits<std::allocator<char32_t> >}::max_size’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char32_t> >::_Base_type {aka struct std::allocator_traits<std::allocator<char32_t> >}’ using _Base_type::max_size; ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In member function ‘size_t std::hash<std::__cxx11::basic_string<char32_t> >::operator()(const u32string&) const’: /usr/include/c++/5/bits/basic_string.h:5536:42: error: ‘const u32string {aka const class std::__cxx11::basic_string<char32_t>}’ has no member named ‘length’ __s.length() * sizeof(char32_t)); } ^ In file included from /usr/include/c++/5/string:53:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’: /usr/include/c++/5/bits/basic_string.tcc:1463:14: error: ‘streamsize’ does not name a type const streamsize __w = __in.width(); ^ /usr/include/c++/5/bits/basic_string.tcc:1464:32: error: ‘__w’ was not declared in this scope const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) ^ In file included from /usr/include/c++/5/ios:42:0, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/ios_base.h: At global scope: /usr/include/c++/5/bits/ios_base.h:520:5: error: ‘streamsize’ does not name a type streamsize _M_precision; ^ /usr/include/c++/5/bits/ios_base.h:521:5: error: ‘streamsize’ does not name a type streamsize _M_width; ^ /usr/include/c++/5/bits/ios_base.h:688:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/ios_base.h:697:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/ios_base.h:711:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/ios_base.h:720:5: error: ‘streamsize’ does not name a type streamsize ^ In file included from /usr/include/c++/5/ios:43:0, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/streambuf:50:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/streambuf:147:14: error: ‘streamsize’ does not name a type friend streamsize ^ /usr/include/c++/5/streambuf:239:33: error: ‘streamsize’ has not been declared pubsetbuf(char_type* __s, streamsize __n) ^ /usr/include/c++/5/streambuf:283:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/streambuf:356:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/streambuf:449:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/streambuf:591:26: error: ‘streamsize’ has not been declared setbuf(char_type*, streamsize) ^ /usr/include/c++/5/streambuf:648:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/streambuf:664:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/streambuf:741:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/streambuf:794:20: error: ‘streamsize’ has not been declared __safe_gbump(streamsize __n) { _M_in_cur += __n; } ^ /usr/include/c++/5/streambuf:797:20: error: ‘streamsize’ has not been declared __safe_pbump(streamsize __n) { _M_out_cur += __n; } ^ /usr/include/c++/5/streambuf:837:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/streambuf:842:5: error: ‘streamsize’ does not name a type streamsize ^ In file included from /usr/include/c++/5/streambuf:850:0, from /usr/include/c++/5/ios:43, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/streambuf.tcc:44:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:78:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:115:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:138:12: error: ‘streamsize’ does not name a type inline streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:151:5: error: ‘streamsize’ is not a template function streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:152:5: error: expected ‘;’ before ‘__copy_streambufs’ __copy_streambufs(basic_streambuf<char>*, ^ /usr/include/c++/5/bits/streambuf.tcc:155:5: error: ‘streamsize’ is not a template function streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:156:5: error: expected ‘;’ before ‘__copy_streambufs_eof’ __copy_streambufs_eof(basic_streambuf<char>*, ^ /usr/include/c++/5/bits/streambuf.tcc:162:5: error: ‘streamsize’ is not a template function streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:163:5: error: expected ‘;’ before ‘__copy_streambufs’ __copy_streambufs(basic_streambuf<wchar_t>*, ^ /usr/include/c++/5/bits/streambuf.tcc:166:5: error: ‘streamsize’ is not a template function streamsize ^ /usr/include/c++/5/bits/streambuf.tcc:167:5: error: expected ‘;’ before ‘__copy_streambufs_eof’ __copy_streambufs_eof(basic_streambuf<wchar_t>*, ^ In file included from /usr/include/c++/5/bits/locale_facets.h:48:0, from /usr/include/c++/5/bits/basic_ios.h:37, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/streambuf_iterator.h:279:34: error: ‘streamsize’ has not been declared _M_put(const _CharT* __ws, streamsize __len) ^ /usr/include/c++/5/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’: /usr/include/c++/5/bits/streambuf_iterator.h:313:13: error: ‘streamsize’ does not name a type const streamsize __num = __last - __first; ^ /usr/include/c++/5/bits/streambuf_iterator.h:314:11: error: ‘__num’ was not declared in this scope if (__num > 0) ^ /usr/include/c++/5/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’: /usr/include/c++/5/bits/streambuf_iterator.h:325:13: error: ‘streamsize’ does not name a type const streamsize __num = __last - __first; ^ /usr/include/c++/5/bits/streambuf_iterator.h:326:11: error: ‘__num’ was not declared in this scope if (__num > 0) ^ /usr/include/c++/5/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)’: /usr/include/c++/5/bits/streambuf_iterator.h:348:14: error: ‘streamsize’ does not name a type const streamsize __n = __sb->egptr() - __sb->gptr(); ^ /usr/include/c++/5/bits/streambuf_iterator.h:349:12: error: ‘__n’ was not declared in this scope if (__n > 1) ^ /usr/include/c++/5/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)’: /usr/include/c++/5/bits/streambuf_iterator.h:385:8: error: ‘streamsize’ was not declared in this scope streamsize __n = __sb->egptr() - __sb->gptr(); ^ /usr/include/c++/5/bits/streambuf_iterator.h:386:12: error: ‘__n’ was not declared in this scope if (__n > 1) ^ In file included from /usr/include/c++/5/bits/basic_ios.h:37:0, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/locale_facets.h: At global scope: /usr/include/c++/5/bits/locale_facets.h:99:29: error: ‘streamsize’ has not been declared const _CharT* __olds, streamsize __newlen, streamsize __oldlen); ^ /usr/include/c++/5/bits/locale_facets.h:99:50: error: ‘streamsize’ has not been declared const _CharT* __olds, streamsize __newlen, streamsize __oldlen); ^ In file included from /usr/include/c++/5/bits/basic_ios.h:37:0, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/locale_facets.h:2484:32: error: ‘streamsize’ has not been declared _M_pad(char_type __fill, streamsize __w, ios_base& __io, ^ In file included from /usr/include/c++/5/bits/locale_facets.h:2651:0, from /usr/include/c++/5/bits/basic_ios.h:37, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)’: /usr/include/c++/5/bits/locale_facets.tcc:88:27: error: ‘const string {aka const class std::__cxx11::basic_string<char>}’ has no member named ‘size’ _M_grouping_size = __g.size(); ^ /usr/include/c++/5/bits/locale_facets.tcc:90:8: error: ‘const string {aka const class std::__cxx11::basic_string<char>}’ has no member named ‘copy’ __g.copy(__grouping, _M_grouping_size); ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, std::__cxx11::string&) const’: /usr/include/c++/5/bits/locale_facets.tcc:211:19: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘reserve’ __found_grouping.reserve(32); ^ /usr/include/c++/5/bits/locale_facets.tcc:296:28: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘size’ if (__found_grouping.size()) ^ /usr/include/c++/5/bits/locale_facets.tcc:319:28: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘size’ if (__found_grouping.size() && !__found_dec) ^ /usr/include/c++/5/bits/locale_facets.tcc:355:28: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘size’ if (__found_grouping.size()) ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const’: /usr/include/c++/5/bits/locale_facets.tcc:468:21: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘reserve’ __found_grouping.reserve(32); ^ /usr/include/c++/5/bits/locale_facets.tcc:554:23: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘size’ if (__found_grouping.size()) ^ /usr/include/c++/5/bits/locale_facets.tcc:567:56: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘size’ if ((!__sep_pos && !__found_zero && !__found_grouping.size()) ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, float&) const’: /usr/include/c++/5/bits/locale_facets.tcc:695:14: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘reserve’ __xtrc.reserve(32); ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, double&) const’: /usr/include/c++/5/bits/locale_facets.tcc:710:14: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘reserve’ __xtrc.reserve(32); ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long double&) const’: /usr/include/c++/5/bits/locale_facets.tcc:742:14: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘reserve’ __xtrc.reserve(32); ^ /usr/include/c++/5/bits/locale_facets.tcc: At global scope: /usr/include/c++/5/bits/locale_facets.tcc:780:27: error: ‘streamsize’ has not been declared _M_pad(_CharT __fill, streamsize __w, ios_base& __io, ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const’: /usr/include/c++/5/bits/locale_facets.tcc:921:8: error: ‘streamsize’ does not name a type const streamsize __w = __io.width(); ^ /usr/include/c++/5/bits/locale_facets.tcc:922:6: error: ‘__w’ was not declared in this scope if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:922:24: error: ‘streamsize’ does not name a type if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:929:7: error: ‘class std::ios_base’ has no member named ‘width’ __io.width(0); ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const’: /usr/include/c++/5/bits/locale_facets.tcc:984:8: error: ‘streamsize’ does not name a type const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); ^ /usr/include/c++/5/bits/locale_facets.tcc:1006:14: error: ‘__prec’ was not declared in this scope __fbuf, __prec, __v); ^ /usr/include/c++/5/bits/locale_facets.tcc:1018:18: error: ‘__prec’ was not declared in this scope __fbuf, __prec, __v); ^ /usr/include/c++/5/bits/locale_facets.tcc:1071:6: error: ‘streamsize’ was not declared in this scope streamsize __off = 0; ^ /usr/include/c++/5/bits/locale_facets.tcc:1074:3: error: ‘__off’ was not declared in this scope __off = 1; ^ /usr/include/c++/5/bits/locale_facets.tcc:1080:45: error: ‘__off’ was not declared in this scope __lc->_M_thousands_sep, __wp, __ws2 + __off, ^ /usr/include/c++/5/bits/locale_facets.tcc:1088:8: error: ‘streamsize’ does not name a type const streamsize __w = __io.width(); ^ /usr/include/c++/5/bits/locale_facets.tcc:1089:6: error: ‘__w’ was not declared in this scope if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:1089:24: error: ‘streamsize’ does not name a type if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:1096:7: error: ‘class std::ios_base’ has no member named ‘width’ __io.width(0); ^ /usr/include/c++/5/bits/locale_facets.tcc: In member function ‘virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(std::num_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::num_put<_CharT, _OutIter>::char_type, bool) const’: /usr/include/c++/5/bits/locale_facets.tcc:1126:10: error: ‘streamsize’ does not name a type const streamsize __w = __io.width(); ^ /usr/include/c++/5/bits/locale_facets.tcc:1127:8: error: ‘__w’ was not declared in this scope if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:1127:26: error: ‘streamsize’ does not name a type if (__w > static_cast<streamsize>(__len)) ^ /usr/include/c++/5/bits/locale_facets.tcc:1129:14: error: ‘streamsize’ does not name a type const streamsize __plen = __w - __len; ^ /usr/include/c++/5/bits/locale_facets.tcc:1132:10: error: ‘__plen’ was not declared in this scope * __plen)); ^ /usr/include/c++/5/bits/locale_facets.tcc:1135:13: error: ‘class std::ios_base’ has no member named ‘width’ __io.width(0); ^ /usr/include/c++/5/bits/locale_facets.tcc:1149:9: error: ‘class std::ios_base’ has no member named ‘width’ __io.width(0); ^ /usr/include/c++/5/bits/locale_facets.tcc: At global scope: /usr/include/c++/5/bits/locale_facets.tcc:1210:8: error: ‘streamsize’ has not been declared streamsize __newlen, streamsize __oldlen) ^ /usr/include/c++/5/bits/locale_facets.tcc:1210:29: error: ‘streamsize’ has not been declared streamsize __newlen, streamsize __oldlen) ^ In file included from /usr/include/c++/5/istream:39:0, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/ostream:311:38: error: ‘streamsize’ has not been declared _M_write(const char_type* __s, streamsize __n) ^ /usr/include/c++/5/ostream:335:35: error: ‘streamsize’ has not been declared write(const char_type* __s, streamsize __n); ^ /usr/include/c++/5/ostream: In member function ‘void std::basic_ostream<_CharT, _Traits>::_M_write(const char_type*, int)’: /usr/include/c++/5/ostream:313:8: error: ‘streamsize’ does not name a type const streamsize __put = this->rdbuf()->sputn(__s, __n); ^ /usr/include/c++/5/ostream:314:6: error: ‘__put’ was not declared in this scope if (__put != __n) ^ /usr/include/c++/5/ostream: In function ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)’: /usr/include/c++/5/ostream:545:17: error: ‘streamsize’ does not name a type static_cast<streamsize>(_Traits::length(__s))); ^ /usr/include/c++/5/ostream: In function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)’: /usr/include/c++/5/ostream:562:17: error: ‘streamsize’ does not name a type static_cast<streamsize>(_Traits::length(__s))); ^ In file included from /usr/include/c++/5/ostream:638:0, from /usr/include/c++/5/istream:39, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/ostream.tcc: At global scope: /usr/include/c++/5/bits/ostream.tcc:183:30: error: ‘streamsize’ has not been declared write(const _CharT* __s, streamsize __n) ^ In file included from /usr/include/c++/5/fstream:38:0, from alg.cpp:2: /usr/include/c++/5/istream:82:7: error: ‘streamsize’ does not name a type streamsize _M_gcount; ^ /usr/include/c++/5/istream:268:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/istream:343:27: error: ‘streamsize’ has not been declared get(char_type* __s, streamsize __n, char_type __delim); ^ /usr/include/c++/5/istream:354:27: error: ‘streamsize’ has not been declared get(char_type* __s, streamsize __n) ^ /usr/include/c++/5/istream:416:31: error: ‘streamsize’ has not been declared getline(char_type* __s, streamsize __n, char_type __delim); ^ /usr/include/c++/5/istream:427:31: error: ‘streamsize’ has not been declared getline(char_type* __s, streamsize __n) ^ /usr/include/c++/5/istream:451:7: error: expected ‘;’ at end of member declaration ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:451:25: error: expected ‘)’ before ‘__n’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:454:7: error: expected ‘;’ at end of member declaration ignore(streamsize __n); ^ /usr/include/c++/5/istream:454:14: error: redeclaration of ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’ ignore(streamsize __n); ^ /usr/include/c++/5/istream:451:14: note: previous declaration ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:454:25: error: expected ‘)’ before ‘__n’ ignore(streamsize __n); ^ /usr/include/c++/5/istream:457:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore()’ conflicts with a previous declaration ignore(); ^ /usr/include/c++/5/istream:451:14: note: previous declaration ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:486:28: error: ‘streamsize’ has not been declared read(char_type* __s, streamsize __n); ^ /usr/include/c++/5/istream:504:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*)’: /usr/include/c++/5/istream:94:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’ : _M_gcount(streamsize(0)) ^ /usr/include/c++/5/istream:94:31: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive] : _M_gcount(streamsize(0)) ^ /usr/include/c++/5/istream:94:31: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /usr/include/c++/5/istream: In destructor ‘virtual std::basic_istream<_CharT, _Traits>::~basic_istream()’: /usr/include/c++/5/istream:104:9: error: ‘_M_gcount’ was not declared in this scope { _M_gcount = streamsize(0); } ^ /usr/include/c++/5/istream:104:33: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive] { _M_gcount = streamsize(0); } ^ /usr/include/c++/5/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream()’: /usr/include/c++/5/istream:607:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’ : _M_gcount(streamsize(0)) ^ /usr/include/c++/5/istream:607:31: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive] : _M_gcount(streamsize(0)) ^ /usr/include/c++/5/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>&&)’: /usr/include/c++/5/istream:614:23: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’ : __ios_type(), _M_gcount(__rhs._M_gcount) ^ /usr/include/c++/5/istream: In member function ‘void std::basic_istream<_CharT, _Traits>::swap(std::basic_istream<_CharT, _Traits>&)’: /usr/include/c++/5/istream:635:12: error: ‘_M_gcount’ was not declared in this scope std::swap(_M_gcount, __rhs._M_gcount); ^ /usr/include/c++/5/istream: In instantiation of ‘class std::basic_istream<char>’: /usr/include/c++/5/istream:647:24: required from here /usr/include/c++/5/istream:451:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore() [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ conflicts with a previous declaration ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:451:14: note: previous declaration ‘std::basic_istream<char>::__istream_type& std::basic_istream<char>::ignore’ /usr/include/c++/5/istream: At global scope: /usr/include/c++/5/istream:648:29: error: ‘streamsize’ has not been declared getline(char_type* __s, streamsize __n, char_type __delim); ^ /usr/include/c++/5/istream:653:12: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static data member of ‘class std::basic_istream<char>’ ignore(streamsize __n); ^ /usr/include/c++/5/istream:653:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/istream:658:12: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static data member of ‘class std::basic_istream<char>’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:658:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/istream:658:37: error: expected primary-expression before ‘__delim’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:658:44: error: expression list treated as compound expression in initializer [-fpermissive] ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream: In instantiation of ‘class std::basic_istream<wchar_t>’: /usr/include/c++/5/istream:663:27: required from here /usr/include/c++/5/istream:451:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore() [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<wchar_t>]’ conflicts with a previous declaration ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:451:14: note: previous declaration ‘std::basic_istream<wchar_t>::__istream_type& std::basic_istream<wchar_t>::ignore’ /usr/include/c++/5/istream:664:29: error: ‘streamsize’ has not been declared getline(char_type* __s, streamsize __n, char_type __delim); ^ /usr/include/c++/5/istream:669:12: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static data member of ‘class std::basic_istream<wchar_t>’ ignore(streamsize __n); ^ /usr/include/c++/5/istream:669:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/istream:674:12: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static data member of ‘class std::basic_istream<wchar_t>’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:674:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/istream:674:37: error: expected primary-expression before ‘__delim’ ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream:674:44: error: expression list treated as compound expression in initializer [-fpermissive] ignore(streamsize __n, int_type __delim); ^ In file included from /usr/include/c++/5/istream:934:0, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()’: /usr/include/c++/5/bits/istream.tcc:240:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&)’: /usr/include/c++/5/bits/istream.tcc:274:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: At global scope: /usr/include/c++/5/bits/istream.tcc:309:25: error: ‘streamsize’ has not been declared get(char_type* __s, streamsize __n, char_type __delim) ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)’: /usr/include/c++/5/bits/istream.tcc:311:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::__streambuf_type&, std::basic_istream<_CharT, _Traits>::char_type)’: /usr/include/c++/5/bits/istream.tcc:358:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: At global scope: /usr/include/c++/5/bits/istream.tcc:400:29: error: ‘streamsize’ has not been declared getline(char_type* __s, streamsize __n, char_type __delim) ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)’: /usr/include/c++/5/bits/istream.tcc:402:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()’: /usr/include/c++/5/bits/istream.tcc:462:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: At global scope: /usr/include/c++/5/bits/istream.tcc:493:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’ ignore(streamsize __n) ^ /usr/include/c++/5/bits/istream.tcc:493:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ /usr/include/c++/5/bits/istream.tcc:493:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/bits/istream.tcc:555:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static data member of ‘class std::basic_istream<_CharT, _Traits>’ ignore(streamsize __n, int_type __delim) ^ /usr/include/c++/5/bits/istream.tcc:555:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ /usr/include/c++/5/bits/istream.tcc:555:12: error: ‘streamsize’ was not declared in this scope /usr/include/c++/5/bits/istream.tcc:555:37: error: expected primary-expression before ‘__delim’ ignore(streamsize __n, int_type __delim) ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()’: /usr/include/c++/5/bits/istream.tcc:623:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: At global scope: /usr/include/c++/5/bits/istream.tcc:650:26: error: ‘streamsize’ has not been declared read(char_type* __s, streamsize __n) ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(std::basic_istream<_CharT, _Traits>::char_type*, int)’: /usr/include/c++/5/bits/istream.tcc:652:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: At global scope: /usr/include/c++/5/bits/istream.tcc:677:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(std::basic_istream<_CharT, _Traits>::char_type)’: /usr/include/c++/5/bits/istream.tcc:715:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()’: /usr/include/c++/5/bits/istream.tcc:750:7: error: ‘_M_gcount’ was not declared in this scope _M_gcount = 0; ^ /usr/include/c++/5/bits/istream.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)’: /usr/include/c++/5/bits/istream.tcc:963:7: error: ‘streamsize’ was not declared in this scope streamsize __extracted = 0; ^ /usr/include/c++/5/bits/istream.tcc:971:19: error: expected ‘;’ before ‘__num’ streamsize __num = __in.width(); ^ /usr/include/c++/5/bits/istream.tcc:972:12: error: ‘__num’ was not declared in this scope if (__num <= 0) ^ /usr/include/c++/5/bits/istream.tcc:973:39: error: the value of ‘streamsize’ is not usable in a constant expression __num = __gnu_cxx::__numeric_traits<streamsize>::__max; ^ /usr/include/c++/5/bits/istream.tcc:963:7: note: ‘streamsize’ was not declared ‘constexpr’ streamsize __extracted = 0; ^ /usr/include/c++/5/bits/istream.tcc:973:49: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Value> struct __gnu_cxx::__numeric_traits’ __num = __gnu_cxx::__numeric_traits<streamsize>::__max; ^ /usr/include/c++/5/bits/istream.tcc:973:49: note: expected a type, got ‘streamsize’ /usr/include/c++/5/bits/istream.tcc:981:15: error: ‘__extracted’ was not declared in this scope while (__extracted < __num - 1 ^ /usr/include/c++/5/bits/istream.tcc:981:29: error: ‘__num’ was not declared in this scope while (__extracted < __num - 1 ^ /usr/include/c++/5/bits/istream.tcc:1006:12: error: ‘__extracted’ was not declared in this scope if (!__extracted) ^ In file included from /usr/include/c++/5/fstream:42:0, from alg.cpp:2: /usr/include/x86_64-linux-gnu/c++/5/bits/basic_file.h: At global scope: /usr/include/x86_64-linux-gnu/c++/5/bits/basic_file.h:107:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/x86_64-linux-gnu/c++/5/bits/basic_file.h:110:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/x86_64-linux-gnu/c++/5/bits/basic_file.h:114:7: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/x86_64-linux-gnu/c++/5/bits/basic_file.h:123:7: error: ‘streamsize’ does not name a type streamsize ^ In file included from alg.cpp:2:0: /usr/include/c++/5/fstream:175:7: error: ‘streamsize’ does not name a type streamsize _M_ext_buf_size; ^ /usr/include/c++/5/fstream:334:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/fstream:361:42: error: ‘streamsize’ has not been declared _M_convert_to_external(char_type*, streamsize); ^ /usr/include/c++/5/fstream:376:30: error: ‘streamsize’ has not been declared setbuf(char_type* __s, streamsize __n); ^ /usr/include/c++/5/fstream:399:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/fstream:402:15: error: ‘streamsize’ does not name a type virtual streamsize ^ /usr/include/c++/5/fstream:422:21: error: ‘streamsize’ has not been declared _M_set_buffer(streamsize __off) ^ In file included from /usr/include/c++/5/fstream:1081:0, from alg.cpp:2: /usr/include/c++/5/bits/fstream.tcc: In member function ‘void std::basic_filebuf<_CharT, _Traits>::_M_destroy_internal_buffer()’: /usr/include/c++/5/bits/fstream.tcc:73:7: error: ‘_M_ext_buf_size’ was not declared in this scope _M_ext_buf_size = 0; ^ /usr/include/c++/5/bits/fstream.tcc: In constructor ‘std::basic_filebuf<_CharT, _Traits>::basic_filebuf()’: /usr/include/c++/5/bits/fstream.tcc:85:35: error: class ‘std::basic_filebuf<_CharT, _Traits>’ does not have any field named ‘_M_ext_buf_size’ _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), ^ /usr/include/c++/5/bits/fstream.tcc: In constructor ‘std::basic_filebuf<_CharT, _Traits>::basic_filebuf(std::basic_filebuf<_CharT, _Traits>&&)’: /usr/include/c++/5/bits/fstream.tcc:113:5: error: class ‘std::basic_filebuf<_CharT, _Traits>’ does not have any field named ‘_M_ext_buf_size’ _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘std::basic_filebuf<_CharT, _Traits>& std::basic_filebuf<_CharT, _Traits>::operator=(std::basic_filebuf<_CharT, _Traits>&&)’: /usr/include/c++/5/bits/fstream.tcc:137:7: error: ‘_M_ext_buf_size’ was not declared in this scope _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘void std::basic_filebuf<_CharT, _Traits>::swap(std::basic_filebuf<_CharT, _Traits>&)’: /usr/include/c++/5/bits/fstream.tcc:165:17: error: ‘_M_ext_buf_size’ was not declared in this scope std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); ^ /usr/include/c++/5/bits/fstream.tcc: At global scope: /usr/include/c++/5/bits/fstream.tcc:261:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘virtual std::basic_filebuf<_CharT, _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()’: /usr/include/c++/5/bits/fstream.tcc:316:4: error: ‘streamsize’ was not declared in this scope streamsize __ilen = 0; ^ /usr/include/c++/5/bits/fstream.tcc:320:8: error: ‘__ilen’ was not declared in this scope __ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()), ^ /usr/include/c++/5/bits/fstream.tcc:320:25: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type {aka class std::__basic_file<char>}’ has no member named ‘xsgetn’ __ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()), ^ /usr/include/c++/5/bits/fstream.tcc:330:19: error: expected ‘;’ before ‘__blen’ streamsize __blen; // Minimum buffer size. ^ /usr/include/c++/5/bits/fstream.tcc:331:19: error: expected ‘;’ before ‘__rlen’ streamsize __rlen; // Number of chars to read. ^ /usr/include/c++/5/bits/fstream.tcc:333:3: error: ‘__blen’ was not declared in this scope __blen = __rlen = __buflen * __enc; ^ /usr/include/c++/5/bits/fstream.tcc:333:12: error: ‘__rlen’ was not declared in this scope __blen = __rlen = __buflen * __enc; ^ /usr/include/c++/5/bits/fstream.tcc:336:5: error: ‘__blen’ was not declared in this scope __blen = __buflen + _M_codecvt->max_length() - 1; ^ /usr/include/c++/5/bits/fstream.tcc:337:5: error: ‘__rlen’ was not declared in this scope __rlen = __buflen; ^ /usr/include/c++/5/bits/fstream.tcc:339:14: error: ‘streamsize’ does not name a type const streamsize __remainder = _M_ext_end - _M_ext_next; ^ /usr/include/c++/5/bits/fstream.tcc:340:8: error: ‘__rlen’ was not declared in this scope __rlen = __rlen > __remainder ? __rlen - __remainder : 0; ^ /usr/include/c++/5/bits/fstream.tcc:340:26: error: ‘__remainder’ was not declared in this scope __rlen = __rlen > __remainder ? __rlen - __remainder : 0; ^ /usr/include/c++/5/bits/fstream.tcc:349:12: error: ‘_M_ext_buf_size’ was not declared in this scope if (_M_ext_buf_size < __blen) ^ /usr/include/c++/5/bits/fstream.tcc:349:30: error: ‘__blen’ was not declared in this scope if (_M_ext_buf_size < __blen) ^ /usr/include/c++/5/bits/fstream.tcc:373:48: error: ‘_M_ext_buf_size’ was not declared in this scope if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) ^ /usr/include/c++/5/bits/fstream.tcc:379:20: error: expected ‘;’ before ‘__elen’ streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); ^ /usr/include/c++/5/bits/fstream.tcc:380:13: error: ‘__elen’ was not declared in this scope if (__elen == 0) ^ /usr/include/c++/5/bits/fstream.tcc:384:23: error: ‘__elen’ was not declared in this scope _M_ext_end += __elen; ^ /usr/include/c++/5/bits/fstream.tcc:396:9: error: ‘__ilen’ was not declared in this scope __ilen = std::min(__avail, __buflen); ^ /usr/include/c++/5/bits/fstream.tcc:403:7: error: ‘__ilen’ was not declared in this scope __ilen = __iend - this->eback(); ^ /usr/include/c++/5/bits/fstream.tcc:413:15: error: ‘__ilen’ was not declared in this scope while (__ilen == 0 && !__got_eof); ^ /usr/include/c++/5/bits/fstream.tcc:416:8: error: ‘__ilen’ was not declared in this scope if (__ilen > 0) ^ /usr/include/c++/5/bits/fstream.tcc: At global scope: /usr/include/c++/5/bits/fstream.tcc:572:44: error: ‘streamsize’ has not been declared _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘bool std::basic_filebuf<_CharT, _Traits>::_M_convert_to_external(_CharT*, int)’: /usr/include/c++/5/bits/fstream.tcc:575:7: error: ‘streamsize’ was not declared in this scope streamsize __elen; ^ /usr/include/c++/5/bits/fstream.tcc:576:18: error: expected ‘;’ before ‘__plen’ streamsize __plen; ^ /usr/include/c++/5/bits/fstream.tcc:579:4: error: ‘__elen’ was not declared in this scope __elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen); ^ /usr/include/c++/5/bits/fstream.tcc:579:21: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type {aka class std::__basic_file<char>}’ has no member named ‘xsputn’ __elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen); ^ /usr/include/c++/5/bits/fstream.tcc:580:4: error: ‘__plen’ was not declared in this scope __plen = __ilen; ^ /usr/include/c++/5/bits/fstream.tcc:586:15: error: expected ‘;’ before ‘__blen’ streamsize __blen = __ilen * _M_codecvt->max_length(); ^ /usr/include/c++/5/bits/fstream.tcc:587:54: error: ‘__blen’ was not declared in this scope char* __buf = static_cast<char*>(__builtin_alloca(__blen)); ^ /usr/include/c++/5/bits/fstream.tcc:607:4: error: ‘__elen’ was not declared in this scope __elen = _M_file.xsputn(__buf, __blen); ^ /usr/include/c++/5/bits/fstream.tcc:607:21: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type {aka class std::__basic_file<char>}’ has no member named ‘xsputn’ __elen = _M_file.xsputn(__buf, __blen); ^ /usr/include/c++/5/bits/fstream.tcc:608:4: error: ‘__plen’ was not declared in this scope __plen = __blen; ^ /usr/include/c++/5/bits/fstream.tcc:614:19: error: expected ‘;’ before ‘__rlen’ streamsize __rlen = this->pptr() - __iend; ^ /usr/include/c++/5/bits/fstream.tcc:616:21: error: ‘__rlen’ was not declared in this scope __iresume + __rlen, __iend, __buf, ^ /usr/include/c++/5/bits/fstream.tcc:621:22: error: ‘std::basic_filebuf<_CharT, _Traits>::__file_type {aka class std::__basic_file<char>}’ has no member named ‘xsputn’ __elen = _M_file.xsputn(__buf, __rlen); ^ /usr/include/c++/5/bits/fstream.tcc:629:14: error: ‘__elen’ was not declared in this scope return __elen == __plen; ^ /usr/include/c++/5/bits/fstream.tcc:629:24: error: ‘__plen’ was not declared in this scope return __elen == __plen; ^ /usr/include/c++/5/bits/fstream.tcc: At global scope: /usr/include/c++/5/bits/fstream.tcc:633:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/fstream.tcc:721:5: error: ‘streamsize’ does not name a type streamsize ^ /usr/include/c++/5/bits/fstream.tcc:771:28: error: ‘streamsize’ has not been declared setbuf(char_type* __s, streamsize __n) ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘bool std::basic_filebuf<_CharT, _Traits>::_M_terminate_output()’: /usr/include/c++/5/bits/fstream.tcc:940:4: error: ‘streamsize’ was not declared in this scope streamsize __ilen = 0; ^ /usr/include/c++/5/bits/fstream.tcc:952:5: error: ‘__ilen’ was not declared in this scope __ilen = __next - __buf; ^ /usr/include/c++/5/bits/fstream.tcc:955:15: error: ‘streamsize’ does not name a type const streamsize __elen = _M_file.xsputn(__buf, __ilen); ^ /usr/include/c++/5/bits/fstream.tcc:956:13: error: ‘__elen’ was not declared in this scope if (__elen != __ilen) ^ /usr/include/c++/5/bits/fstream.tcc:961:43: error: ‘__ilen’ was not declared in this scope while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); ^ /usr/include/c++/5/bits/fstream.tcc: In member function ‘virtual void std::basic_filebuf<_CharT, _Traits>::imbue(const std::locale&)’: /usr/include/c++/5/bits/fstream.tcc:1029:15: error: ‘streamsize’ does not name a type const streamsize __remainder = _M_ext_end - _M_ext_next; ^ /usr/include/c++/5/bits/fstream.tcc:1030:13: error: ‘__remainder’ was not declared in this scope if (__remainder) ^ /usr/include/c++/5/bits/fstream.tcc:1034:35: error: ‘__remainder’ was not declared in this scope _M_ext_end = _M_ext_buf + __remainder; ^ alg.cpp: In function ‘int main()’: alg.cpp:21:12: error: ‘include’ was not declared in this scope in>>n;#include <iostream> ^ alg.cpp:21:29: error: expected primary-expression before ‘>’ token in>>n;#include <iostream> ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/iosfwd:38, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/math.h:28:1: error: expected primary-expression before ‘extern’ __BEGIN_DECLS ^ In file included from /usr/include/c++/5/iosfwd:38:0, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/cmath:75:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/cmath:75:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/cmath:75:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/cmath:75:15: error: expected primary-expression before ‘__attribute__’ /usr/include/c++/5/cmath:555:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/cmath:555:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/cmath:555:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/cmath:555:15: error: expected primary-expression before ‘__attribute__’ /usr/include/c++/5/cmath:1062:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/cmath:1062:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/cmath:1062:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/cmath:1062:15: error: expected primary-expression before ‘__attribute__’ In file included from /usr/include/c++/5/bits/stl_tree.h:69:0, from /usr/include/c++/5/set:60, from alg.cpp:24: /usr/include/c++/5/ext/aligned_buffer.h:40:1: error: ‘namespace’ definition is not allowed here namespace __gnu_cxx ^ In file included from /usr/include/c++/5/iosfwd:38:0, from /usr/include/c++/5/ios:38, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/stl_tree.h:72:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/bits/stl_tree.h:72:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/bits/stl_tree.h:72:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/bits/stl_tree.h:72:15: error: expected primary-expression before ‘__attribute__’ /usr/include/c++/5/bits/stl_set.h:64:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/bits/stl_set.h:64:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/bits/stl_set.h:64:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/bits/stl_set.h:64:15: error: expected primary-expression before ‘__attribute__’ /usr/include/c++/5/bits/stl_multiset.h:64:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/5/bits/stl_multiset.h:64:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/5/bits/stl_multiset.h:64:15: error: expected ‘;’ before ‘__attribute__’ /usr/include/c++/5/bits/stl_multiset.h:64:15: error: expected primary-expression before ‘__attribute__’ alg.cpp:29:1: error: a function-definition is not allowed here before ‘{’ token { ^ alg.cpp:100:1: error: expected ‘}’ at end of input } ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/system_error:181:40: required from here /usr/include/c++/5/bits/basic_string.h:487:17: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘_M_allocated_capacity’ _M_capacity(__str._M_allocated_capacity); ^ /usr/include/c++/5/bits/basic_string.h:487:17: error: ‘_M_capacity’ was not declared in this scope /usr/include/c++/5/bits/basic_string.h:493:11: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘length’ _M_length(__str.length()); ^ /usr/include/c++/5/bits/basic_string.h:493:11: error: ‘_M_length’ was not declared in this scope /usr/include/c++/5/bits/basic_string.h:495:2: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘_M_set_length’ __str._M_set_length(0); ^ /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/system_error:343:50: required from here /usr/include/c++/5/bits/basic_string.h:4863:40: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘size’ const auto __size = __lhs.size() + __rhs.size(); ^ /usr/include/c++/5/bits/basic_string.h:4863:40: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘size’ /usr/include/c++/5/bits/basic_string.h:4864:35: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘capacity’ const bool __cond = (__size > __lhs.capacity() ^ /usr/include/c++/5/bits/basic_string.h:4865:17: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘capacity’ && __size <= __rhs.capacity()); ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/stl_iterator.h: In instantiation of ‘class __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >’: /usr/include/c++/5/bits/basic_string.h:4866:32: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/5/system_error:343:50: required from here /usr/include/c++/5/bits/stl_iterator.h:732:56: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<const char*>’ typedef typename __traits_type::difference_type difference_type; ^ /usr/include/c++/5/bits/stl_iterator.h: In instantiation of ‘class __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’: /usr/include/c++/5/bits/basic_string.h:4866:32: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/5/system_error:343:50: required from here /usr/include/c++/5/bits/stl_iterator.h:732:56: error: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from alg.cpp:2: /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/system_error:343:50: required from here /usr/include/c++/5/bits/basic_string.h:4866:32: error: no matching function for call to ‘std::__cxx11::basic_string<char>::insert(int, std::__cxx11::basic_string<char>&)’ return __cond ? std::move(__rhs.insert(0, __lhs)) ^ /usr/include/c++/5/bits/basic_string.h:1273:9: note: candidate: template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) ^ /usr/include/c++/5/bits/basic_string.h:1273:9: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/basic_string.h:4866:32: note: candidate expects 3 arguments, 2 provided return __cond ? std::move(__rhs.insert(0, __lhs)) ^ /usr/include/c++/5/bits/basic_string.h:1307:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*] insert(iterator __p, initializer_list<_CharT> __l) ^ /usr/include/c++/5/bits/basic_string.h:1307:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}’ /usr/include/c++/5/bits/basic_string.h:1434:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*] insert(__const_iterator __p, _CharT __c) ^ /usr/include/c++/5/bits/basic_string.h:1434:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::__const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >}’ /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/system_error:346:51: required from here /usr/include/c++/5/bits/basic_string.h:4874:23: error: no matching function for call to ‘std::__cxx11::basic_string<char>::insert(int, const char*&)’ { return std::move(__rhs.insert(0, __lhs)); } ^ /usr/include/c++/5/bits/basic_string.h:1273:9: note: candidate: template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) ^ /usr/include/c++/5/bits/basic_string.h:1273:9: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/basic_string.h:4874:23: note: candidate expects 3 arguments, 2 provided { return std::move(__rhs.insert(0, __lhs)); } ^ /usr/include/c++/5/bits/basic_string.h:1307:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator, std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*] insert(iterator __p, initializer_list<_CharT> __l) ^ /usr/include/c++/5/bits/basic_string.h:1307:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}’ /usr/include/c++/5/bits/basic_string.h:1434:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*] insert(__const_iterator __p, _CharT __c) ^ /usr/include/c++/5/bits/basic_string.h:1434:7: note: no known conversion for argument 1 from ‘int’ to ‘std::__cxx11::basic_string<char>::__const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >}’ /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/bits/basic_string.h:543:19: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/5/system_error:181:40: required from here /usr/include/c++/5/bits/basic_string.h:180:14: error: using invalid field ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::<anonymous union>::_M_allocated_capacity’ _M_destroy(_M_allocated_capacity); ^ /usr/include/c++/5/bits/basic_string.h:180:14: error: ‘_M_destroy’ was not declared in this scope /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/bits/basic_string.h:4823:56: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/5/system_error:343:30: required from here /usr/include/c++/5/bits/basic_string.h:400:55: error: ‘const class std::__cxx11::basic_string<char>’ has no member named ‘length’ { _M_construct(__str._M_data(), __str._M_data() + __str.length()); } ^ /usr/include/c++/5/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::append(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/5/bits/basic_string.h:4824:7: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/5/system_error:343:30: required from here /usr/include/c++/5/bits/basic_string.h:1028:17: error: ‘_M_check_length’ was not declared in this scope _M_check_length(size_type(0), __n, "basic_string::append"); ^ /usr/include/c++/5/bits/basic_string.h:1029:18: error: ‘_M_append’ was not declared in this scope return _M_append(__s, __n); ^ In file included from /usr/include/c++/5/fstream:38:0, from alg.cpp:2: /usr/include/c++/5/istream: In instantiation of ‘std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits<char>]’: /usr/include/c++/5/fstream:496:38: required from ‘std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]’ alg.cpp:18:28: required from here /usr/include/c++/5/istream:606:7: error: uninitialized reference member in ‘std::basic_istream<char>::__istream_type& {aka class std::basic_istream<char>&}’ [-fpermissive] basic_istream() ^ /usr/include/c++/5/istream:451:14: note: ‘std::basic_istream<char>::__istream_type& std::basic_istream<char>::ignore’ should be initialized ignore(streamsize __n, int_type __delim); ^ /usr/include/c++/5/istream: In instantiation of ‘std::basic_istream<_CharT, _Traits>::~basic_istream() [with _CharT = char; _Traits = std::char_traits<char>]’: /usr/include/c++/5/fstream:496:38: required from ‘std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]’ alg.cpp:18:28: required from here /usr/include/c++/5/istream:104:31: error: ‘streamsize’ was not declared in this scope { _M_gcount = streamsize(0); } ^

nr.resulttimemessage