#376
Suma Divizori
Se citește un număr natural n
. Să se determine suma divizorilor săi.
Problema | Suma Divizori | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54756056 | Utilizator | |
Fișier | suma_divizori.cpp | Dimensiune | 455 B |
Data încărcării | 07 Decembrie 2024, 15:31 | Scor / rezultat | Eroare de compilare |
suma_divizori.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ In file included from /usr/include/c++/4.8/bits/move.h:57:0, from /usr/include/c++/4.8/bits/stl_pair.h:59, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/type_traits:285:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:419:34: error: 'nullptr_t' is not a member of 'std' struct __is_nullptr_t_helper<std::nullptr_t> ^ /usr/include/c++/4.8/type_traits:419:34: error: 'nullptr_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:419:48: error: template argument 1 is invalid struct __is_nullptr_t_helper<std::nullptr_t> ^ /usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1239:61: error: template argument 1 is invalid : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/4.8/type_traits:1239:61: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1244:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1244:46: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1246:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1248:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1248:65: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1252:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1252:65: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1257:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1257:46: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1259:47: error: 'std::size_t' has not been declared template<typename _Tp, unsigned _Uint, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, ^ /usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1263:28: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/4.8/type_traits:1263:28: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, ^ /usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1270:31: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/4.8/type_traits:1270:31: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1627:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1640:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1671:17: error: 'std::size_t' has not been declared template<std::size_t _Len> ^ /usr/include/c++/4.8/type_traits:1691:17: error: 'std::size_t' has not been declared template<std::size_t _Len, std::size_t _Align = ^ /usr/include/c++/4.8/type_traits:1691: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++/4.8/bits/stl_pair.h:59:0, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/move.h:183:26: error: 'size_t' has not been declared template<typename _Tp, size_t _Nm> ^ /usr/include/c++/4.8/bits/move.h: In function 'void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])': /usr/include/c++/4.8/bits/move.h:190:12: error: 'size_t' was not declared in this scope for (size_t __n = 0; __n < _Nm; ++__n) ^ /usr/include/c++/4.8/bits/move.h:190:19: error: expected ';' before '__n' for (size_t __n = 0; __n < _Nm; ++__n) ^ /usr/include/c++/4.8/bits/move.h:190:28: error: '__n' was not declared in this scope for (size_t __n = 0; __n < _Nm; ++__n) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_pair.h: At global scope: /usr/include/c++/4.8/bits/stl_pair.h:85:17: error: 'std::size_t' has not been declared template<std::size_t...> ^ /usr/include/c++/4.8/bits/stl_pair.h:204:41: error: 'std::size_t' has not been declared template<typename... _Args1, std::size_t... _Indexes1, ^ /usr/include/c++/4.8/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++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected type-specifier before 'ptrdiff_t' template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t, ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected '>' before 'ptrdiff_t' /usr/include/c++/4.8/bits/stl_iterator_base_types.h:127:15: error: '_Pointer' does not name a type typedef _Pointer pointer; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:129:15: error: '_Reference' does not name a type typedef _Reference reference; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:179:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:190:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:101:69: error: wrong number of template arguments (5, should be 3) typename iterator_traits<_Iterator>::reference> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator' struct iterator ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:403:66: error: wrong number of template arguments (5, should be 3) : public iterator<output_iterator_tag, void, void, void, void> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator' struct iterator ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:494:66: error: wrong number of template arguments (5, should be 3) : public iterator<output_iterator_tag, void, void, void, void> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator' struct iterator ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:588:66: error: wrong number of template arguments (5, should be 3) : public iterator<output_iterator_tag, void, void, void, void> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator' struct iterator ^ In file included from /usr/include/c++/4.8/vector:60:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/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++/4.8/bits/stl_algobase.h:370:10: error: 'ptrdiff_t' does not name a type const ptrdiff_t _Num = __last - __first; ^ /usr/include/c++/4.8/bits/stl_algobase.h:371:8: error: '_Num' was not declared in this scope if (_Num) ^ /usr/include/c++/4.8/bits/stl_algobase.h:373:22: error: '_Num' was not declared in this scope return __result + _Num; ^ /usr/include/c++/4.8/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++/4.8/bits/stl_algobase.h:565:10: error: 'ptrdiff_t' does not name a type const ptrdiff_t _Num = __last - __first; ^ /usr/include/c++/4.8/bits/stl_algobase.h:566:8: error: '_Num' was not declared in this scope if (_Num) ^ /usr/include/c++/4.8/bits/stl_algobase.h:568:22: error: '_Num' was not declared in this scope return __result - _Num; ^ /usr/include/c++/4.8/bits/stl_algobase.h: In static member function 'static bool std::__lexicographical_compare<true>::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)': /usr/include/c++/4.8/bits/stl_algobase.h:904:10: error: 'size_t' does not name a type const size_t __len1 = __last1 - __first1; ^ /usr/include/c++/4.8/bits/stl_algobase.h:905:10: error: 'size_t' does not name a type const size_t __len2 = __last2 - __first2; ^ /usr/include/c++/4.8/bits/stl_algobase.h:907:16: error: '__len1' was not declared in this scope std::min(__len1, __len2)); ^ /usr/include/c++/4.8/bits/stl_algobase.h:907:24: error: '__len2' was not declared in this scope std::min(__len1, __len2)); ^ In file included from /usr/include/c++/4.8/exception:152:0, from /usr/include/c++/4.8/new:40, from /usr/include/c++/4.8/ext/new_allocator.h:33, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/vector:61, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/exception_ptr.h: At global scope: /usr/include/c++/4.8/bits/exception_ptr.h:95:30: error: field 'nullptr_t' has incomplete type exception_ptr(nullptr_t) noexcept ^ /usr/include/c++/4.8/bits/exception_ptr.h:95:30: error: expected ';' at end of member declaration /usr/include/c++/4.8/bits/exception_ptr.h:95:32: error: expected unqualified-id before 'noexcept' exception_ptr(nullptr_t) noexcept ^ In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/vector:61, from suma_divizori.cpp:2: /usr/include/c++/4.8/new:91:31: error: declaration of 'operator new' as non-function void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/4.8/new:91:20: error: 'size_t' is not a member of 'std' void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/4.8/new:93:33: error: declaration of 'operator new []' as non-function void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/4.8/new:93:22: error: 'size_t' is not a member of 'std' void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) ^ /usr/include/c++/4.8/new:99: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++/4.8/new:99: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++/4.8/new:99:33: error: expected primary-expression before 'const' void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/4.8/new:101: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++/4.8/new:101: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++/4.8/new:101:35: error: expected primary-expression before 'const' void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/4.8/new:109:32: error: declaration of 'operator new' as non-function inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/4.8/new:109: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++/4.8/new:109:40: error: expected primary-expression before 'void' inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/4.8/new:111:34: error: declaration of 'operator new []' as non-function inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT ^ /usr/include/c++/4.8/new:111: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++/4.8/new:111: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/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33:0, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/vector:61, from suma_divizori.cpp:2: /usr/include/c++/4.8/ext/new_allocator.h:44:14: error: 'std::size_t' has not been declared using std::size_t; ^ /usr/include/c++/4.8/ext/new_allocator.h:45:14: error: 'std::ptrdiff_t' has not been declared using std::ptrdiff_t; ^ /usr/include/c++/4.8/ext/new_allocator.h:61:15: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/ext/new_allocator.h:62:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/ext/new_allocator.h:99:16: error: 'size_type' has not been declared allocate(size_type __n, const void* = 0) ^ /usr/include/c++/4.8/ext/new_allocator.h:109:31: error: 'size_type' has not been declared deallocate(pointer __p, size_type) ^ /usr/include/c++/4.8/ext/new_allocator.h:112:7: error: 'size_type' does not name a type size_type ^ In file included from /usr/include/c++/4.8/vector:61:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/allocator.h:66:15: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/bits/allocator.h:67:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/bits/allocator.h:95:15: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/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++/4.8/bits/alloc_traits.h:36:0, from /usr/include/c++/4.8/ext/alloc_traits.h:36, from /usr/include/c++/4.8/bits/stl_construct.h:61, from /usr/include/c++/4.8/vector:62, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/ptr_traits.h:69:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t __type; ^ /usr/include/c++/4.8/bits/ptr_traits.h:162:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/4.8/bits/stl_vector.h:63:0, from /usr/include/c++/4.8/vector:64, from suma_divizori.cpp:2: /usr/include/c++/4.8/initializer_list:53:15: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/initializer_list:59:7: error: 'size_type' does not name a type size_type _M_len; ^ /usr/include/c++/4.8/initializer_list:62:54: error: 'size_type' has not been declared constexpr initializer_list(const_iterator __a, size_type __l) ^ /usr/include/c++/4.8/initializer_list:70:17: error: 'size_type' does not name a type constexpr size_type ^ /usr/include/c++/4.8/initializer_list: In constructor 'constexpr std::initializer_list<_E>::initializer_list(std::initializer_list<_E>::const_iterator, int)': /usr/include/c++/4.8/initializer_list:63:24: error: class 'std::initializer_list<_E>' does not have any field named '_M_len' : _M_array(__a), _M_len(__l) { } ^ /usr/include/c++/4.8/initializer_list: In constructor 'constexpr std::initializer_list<_E>::initializer_list()': /usr/include/c++/4.8/initializer_list:67:22: error: class 'std::initializer_list<_E>' does not have any field named '_M_len' : _M_array(0), _M_len(0) { } ^ /usr/include/c++/4.8/initializer_list: In member function 'constexpr const _E* std::initializer_list<_E>::end() const': /usr/include/c++/4.8/initializer_list:79:52: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] end() const noexcept { return begin() + size(); } ^ /usr/include/c++/4.8/initializer_list:79:52: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) In file included from /usr/include/c++/4.8/vector:64:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h: At global scope: /usr/include/c++/4.8/bits/stl_vector.h:130:27: error: expected ')' before '__n' _Vector_base(size_t __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:134:27: error: expected ')' before '__n' _Vector_base(size_t __n, const allocator_type& __a) ^ /usr/include/c++/4.8/bits/stl_vector.h:167:19: error: 'size_t' has not been declared _M_allocate(size_t __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:171:34: error: 'size_t' has not been declared _M_deallocate(pointer __p, size_t __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:179:25: error: 'size_t' has not been declared _M_create_storage(size_t __n) ^ /usr/include/c++/4.8/bits/stl_vector.h: In constructor 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::_Vector_base<_Tp, _Alloc>&&, const allocator_type&)': /usr/include/c++/4.8/bits/stl_vector.h:153:6: error: 'size_t' was not declared in this scope size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; ^ /usr/include/c++/4.8/bits/stl_vector.h:153:13: error: expected ';' before '__n' size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; ^ /usr/include/c++/4.8/bits/stl_vector.h:154:24: error: '__n' was not declared in this scope _M_create_storage(__n); ^ /usr/include/c++/4.8/bits/stl_vector.h: At global scope: /usr/include/c++/4.8/bits/stl_vector.h:232:15: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/bits/stl_vector.h:233:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/bits/stl_vector.h:269:24: error: expected ')' before '__n' vector(size_type __n, const allocator_type& __a = allocator_type()) ^ /usr/include/c++/4.8/bits/stl_vector.h:281:24: error: expected ')' before '__n' vector(size_type __n, const value_type& __value, ^ /usr/include/c++/4.8/bits/stl_vector.h:479:14: error: 'size_type' has not been declared assign(size_type __n, const value_type& __val) ^ /usr/include/c++/4.8/bits/stl_vector.h:644:7: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_vector.h:649:7: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_vector.h:664:14: error: 'size_type' has not been declared resize(size_type __new_size) ^ /usr/include/c++/4.8/bits/stl_vector.h:684:14: error: 'size_type' has not been declared resize(size_type __new_size, const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:724:7: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_vector.h:755:15: error: 'size_type' has not been declared reserve(size_type __n); ^ /usr/include/c++/4.8/bits/stl_vector.h:770:18: error: 'size_type' has not been declared operator[](size_type __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:785:18: error: 'size_type' has not been declared operator[](size_type __n) const ^ /usr/include/c++/4.8/bits/stl_vector.h:791:22: error: 'size_type' has not been declared _M_range_check(size_type __n) const ^ /usr/include/c++/4.8/bits/stl_vector.h:810:10: error: 'size_type' has not been declared at(size_type __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:828:10: error: 'size_type' has not been declared at(size_type __n) const ^ /usr/include/c++/4.8/bits/stl_vector.h:1023:35: error: 'size_type' has not been declared insert(iterator __position, size_type __n, const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:1135:30: error: 'size_type' has not been declared _M_allocate_and_copy(size_type __n, ^ /usr/include/c++/4.8/bits/stl_vector.h:1212:26: error: 'size_type' has not been declared _M_fill_initialize(size_type __n, const value_type& __value) ^ /usr/include/c++/4.8/bits/stl_vector.h:1222:29: error: 'size_type' has not been declared _M_default_initialize(size_type __n) ^ /usr/include/c++/4.8/bits/stl_vector.h:1268:22: error: 'size_type' has not been declared _M_fill_assign(size_type __n, const value_type& __val); ^ /usr/include/c++/4.8/bits/stl_vector.h:1309:38: error: 'size_type' has not been declared _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); ^ /usr/include/c++/4.8/bits/stl_vector.h:1314:25: error: 'size_type' has not been declared _M_default_append(size_type __n); ^ /usr/include/c++/4.8/bits/stl_vector.h:1335:7: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::resize(int)': /usr/include/c++/4.8/bits/stl_vector.h:666:24: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] if (__new_size > size()) ^ /usr/include/c++/4.8/bits/stl_vector.h:667:40: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] _M_default_append(__new_size - size()); ^ /usr/include/c++/4.8/bits/stl_vector.h:668:29: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] else if (__new_size < size()) ^ /usr/include/c++/4.8/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::resize(int, const value_type&)': /usr/include/c++/4.8/bits/stl_vector.h:686:24: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] if (__new_size > size()) ^ /usr/include/c++/4.8/bits/stl_vector.h:687:36: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] insert(end(), __new_size - size(), __x); ^ /usr/include/c++/4.8/bits/stl_vector.h:688:29: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] else if (__new_size < size()) ^ /usr/include/c++/4.8/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type)': /usr/include/c++/4.8/bits/stl_vector.h:1163:53: error: expected type-specifier before 'size_type' this->_M_impl._M_start = _M_allocate(static_cast<size_type>(__n)); ^ /usr/include/c++/4.8/bits/stl_vector.h:1163:53: error: expected '>' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h:1163:53: error: expected '(' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h:1163:53: error: 'size_type' was not declared in this scope /usr/include/c++/4.8/bits/stl_vector.h:1165:43: error: expected type-specifier before 'size_type' this->_M_impl._M_start + static_cast<size_type>(__n); ^ /usr/include/c++/4.8/bits/stl_vector.h:1165:43: error: expected '>' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h:1165:43: error: expected '(' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h:1165:58: error: expected ')' before ';' token this->_M_impl._M_start + static_cast<size_type>(__n); ^ /usr/include/c++/4.8/bits/stl_vector.h:1166:35: error: expected type-specifier before 'size_type' _M_fill_initialize(static_cast<size_type>(__n), __value); ^ /usr/include/c++/4.8/bits/stl_vector.h:1166:35: error: expected '>' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h:1166:35: error: expected '(' before 'size_type' /usr/include/c++/4.8/bits/stl_vector.h: In member function 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': /usr/include/c++/4.8/bits/stl_vector.h:1200:10: error: 'size_type' does not name a type const size_type __n = std::distance(__first, __last); ^ /usr/include/c++/4.8/bits/stl_vector.h:1201:47: error: '__n' was not declared in this scope this->_M_impl._M_start = this->_M_allocate(__n); ^ In file included from /usr/include/c++/4.8/vector:65:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_bvector.h: At global scope: /usr/include/c++/4.8/bits/stl_bvector.h:137:63: error: template argument 3 is invalid : public std::iterator<std::random_access_iterator_tag, bool> ^ /usr/include/c++/4.8/bits/stl_bvector.h:166:13: error: 'ptrdiff_t' has not been declared _M_incr(ptrdiff_t __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::_Bit_iterator_base::_M_incr(int)': /usr/include/c++/4.8/bits/stl_bvector.h:168:7: error: 'difference_type' was not declared in this scope difference_type __n = __i + _M_offset; ^ /usr/include/c++/4.8/bits/stl_bvector.h:168:23: error: expected ';' before '__n' difference_type __n = __i + _M_offset; ^ /usr/include/c++/4.8/bits/stl_bvector.h:169:15: error: '__n' was not declared in this scope _M_p += __n / int(_S_word_bit); ^ /usr/include/c++/4.8/bits/stl_bvector.h: At global scope: /usr/include/c++/4.8/bits/stl_bvector.h:207:10: error: 'ptrdiff_t' does not name a type inline ptrdiff_t ^ /usr/include/c++/4.8/bits/stl_bvector.h:260:16: error: declaration of 'operator+=' as non-function operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:260:13: error: expected ';' at end of member declaration operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:260:32: error: expected ')' before '__i' operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:267:16: error: declaration of 'operator-=' as non-function operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:267:13: error: expected ';' at end of member declaration operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:267:32: error: expected ')' before '__i' operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:274:15: error: 'difference_type' has not been declared operator+(difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:281:15: error: 'difference_type' has not been declared operator-(difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:288:16: error: 'difference_type' has not been declared operator[](difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator+(int) const': /usr/include/c++/4.8/bits/stl_bvector.h:277:20: error: no match for 'operator+=' (operand types are 'std::_Bit_iterator::iterator {aka std::_Bit_iterator}' and 'int') return __tmp += __i; ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::_Bit_iterator::iterator std::_Bit_iterator::operator-(int) const': /usr/include/c++/4.8/bits/stl_bvector.h:284:20: error: no match for 'operator-=' (operand types are 'std::_Bit_iterator::iterator {aka std::_Bit_iterator}' and 'int') return __tmp -= __i; ^ /usr/include/c++/4.8/bits/stl_bvector.h: At global scope: /usr/include/c++/4.8/bits/stl_bvector.h:293:13: error: declaration of 'operator+' as non-function operator+(ptrdiff_t __n, const _Bit_iterator& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:293:13: error: 'ptrdiff_t' was not declared in this scope /usr/include/c++/4.8/bits/stl_bvector.h:293:28: error: expected primary-expression before 'const' operator+(ptrdiff_t __n, const _Bit_iterator& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:346:16: error: declaration of 'operator+=' as non-function operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:346:13: error: expected ';' at end of member declaration operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:346:32: error: expected ')' before '__i' operator+=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:353:16: error: declaration of 'operator-=' as non-function operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:353:13: error: expected ';' at end of member declaration operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:353:32: error: expected ')' before '__i' operator-=(difference_type __i) ^ /usr/include/c++/4.8/bits/stl_bvector.h:360:15: error: 'difference_type' has not been declared operator+(difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:367:15: error: 'difference_type' has not been declared operator-(difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:374:16: error: 'difference_type' has not been declared operator[](difference_type __i) const ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator+(int) const': /usr/include/c++/4.8/bits/stl_bvector.h:363:20: error: no match for 'operator+=' (operand types are 'std::_Bit_const_iterator::const_iterator {aka std::_Bit_const_iterator}' and 'int') return __tmp += __i; ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::_Bit_const_iterator::const_iterator std::_Bit_const_iterator::operator-(int) const': /usr/include/c++/4.8/bits/stl_bvector.h:370:20: error: no match for 'operator-=' (operand types are 'std::_Bit_const_iterator::const_iterator {aka std::_Bit_const_iterator}' and 'int') return __tmp -= __i; ^ /usr/include/c++/4.8/bits/stl_bvector.h: At global scope: /usr/include/c++/4.8/bits/stl_bvector.h:379:13: error: declaration of 'operator+' as non-function operator+(ptrdiff_t __n, const _Bit_const_iterator& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:379:13: error: 'ptrdiff_t' was not declared in this scope /usr/include/c++/4.8/bits/stl_bvector.h:379:28: error: expected primary-expression before 'const' operator+(ptrdiff_t __n, const _Bit_const_iterator& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:472:7: error: expected ';' at end of member declaration _M_allocate(size_t __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:472:26: error: expected ')' before '__n' _M_allocate(size_t __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:483:14: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/stl_bvector.h:528:13: error: 'size_t' does not name a type typedef size_t size_type; ^ /usr/include/c++/4.8/bits/stl_bvector.h:529:13: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/bits/stl_bvector.h:559:22: error: expected ')' before '__n' vector(size_type __n, const allocator_type& __a = allocator_type()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:563:22: error: expected ')' before '__n' vector(size_type __n, const bool& __value, ^ /usr/include/c++/4.8/bits/stl_bvector.h:662:12: error: 'size_type' has not been declared assign(size_type __n, const bool& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:737:5: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_bvector.h:741:5: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_bvector.h:752:5: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_bvector.h:762:16: error: 'size_type' has not been declared operator[](size_type __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:769:16: error: 'size_type' has not been declared operator[](size_type __n) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:777:20: error: 'size_type' has not been declared _M_range_check(size_type __n) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:785:8: error: 'size_type' has not been declared at(size_type __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:789:8: error: 'size_type' has not been declared at(size_type __n) const ^ /usr/include/c++/4.8/bits/stl_bvector.h:793:13: error: 'size_type' has not been declared reserve(size_type __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:888:33: error: 'size_type' has not been declared insert(iterator __position, size_type __n, const bool& __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:918:12: error: 'size_type' has not been declared resize(size_type __new_size, bool __x = bool()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:957:19: error: 'size_type' has not been declared _M_initialize(size_type __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h:966:19: error: 'size_type' has not been declared _M_reallocate(size_type __n); ^ /usr/include/c++/4.8/bits/stl_bvector.h:1026:20: error: 'size_t' has not been declared _M_fill_assign(size_t __n, bool __x) ^ /usr/include/c++/4.8/bits/stl_bvector.h:1092:41: error: 'size_type' has not been declared _M_fill_insert(iterator __position, size_type __n, bool __x); ^ /usr/include/c++/4.8/bits/stl_bvector.h:1114:5: error: 'size_type' does not name a type size_type ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&)': /usr/include/c++/4.8/bits/stl_bvector.h:628:33: error: there are no arguments to 'capacity' that depend on a template parameter, so a declaration of 'capacity' must be available [-fpermissive] if (__x.size() > capacity()) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_iterator>': /usr/include/c++/4.8/bits/stl_bvector.h:705:5: required from here /usr/include/c++/4.8/bits/stl_iterator.h:110:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_iterator>' typedef typename __traits_type::difference_type difference_type; ^ /usr/include/c++/4.8/bits/stl_iterator.h:111:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_iterator>' typedef typename __traits_type::pointer pointer; ^ /usr/include/c++/4.8/bits/stl_iterator.h:112:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_iterator>' typedef typename __traits_type::reference reference; ^ /usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class std::reverse_iterator<std::_Bit_const_iterator>': /usr/include/c++/4.8/bits/stl_bvector.h:709:5: required from here /usr/include/c++/4.8/bits/stl_iterator.h:110:55: error: no type named 'difference_type' in 'struct std::iterator_traits<std::_Bit_const_iterator>' typedef typename __traits_type::difference_type difference_type; ^ /usr/include/c++/4.8/bits/stl_iterator.h:111:48: error: no type named 'pointer' in 'struct std::iterator_traits<std::_Bit_const_iterator>' typedef typename __traits_type::pointer pointer; ^ /usr/include/c++/4.8/bits/stl_iterator.h:112:50: error: no type named 'reference' in 'struct std::iterator_traits<std::_Bit_const_iterator>' typedef typename __traits_type::reference reference; ^ In file included from /usr/include/c++/4.8/vector:65:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::reserve(int)': /usr/include/c++/4.8/bits/stl_bvector.h:795:26: error: there are no arguments to 'max_size' that depend on a template parameter, so a declaration of 'max_size' must be available [-fpermissive] if (__n > max_size()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:797:20: error: there are no arguments to 'capacity' that depend on a template parameter, so a declaration of 'capacity' must be available [-fpermissive] if (capacity() < __n) ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'std::vector<bool, _Alloc>::iterator std::vector<bool, _Alloc>::insert(std::vector<bool, _Alloc>::iterator, const bool&)': /usr/include/c++/4.8/bits/stl_bvector.h:860:13: error: 'difference_type' does not name a type const difference_type __n = __position - begin(); ^ /usr/include/c++/4.8/bits/stl_bvector.h:866:24: error: '__n' was not declared in this scope return begin() + __n; ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::resize(int, bool)': /usr/include/c++/4.8/bits/stl_bvector.h:920:29: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] if (__new_size < size()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:921:61: error: there are no arguments to 'difference_type' that depend on a template parameter, so a declaration of 'difference_type' must be available [-fpermissive] _M_erase_at_end(begin() + difference_type(__new_size)); ^ /usr/include/c++/4.8/bits/stl_bvector.h:923:41: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] insert(end(), __new_size - size(), __x); ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_initialize(int)': /usr/include/c++/4.8/bits/stl_bvector.h:962:77: error: there are no arguments to 'difference_type' that depend on a template parameter, so a declaration of 'difference_type' must be available [-fpermissive] this->_M_impl._M_finish = this->_M_impl._M_start + difference_type(__n); ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type)': /usr/include/c++/4.8/bits/stl_bvector.h:981:28: error: expected type-specifier before 'size_type' _M_initialize(static_cast<size_type>(__n)); ^ /usr/include/c++/4.8/bits/stl_bvector.h:981:28: error: expected '>' before 'size_type' /usr/include/c++/4.8/bits/stl_bvector.h:981:28: error: expected '(' before 'size_type' /usr/include/c++/4.8/bits/stl_bvector.h:981:28: error: 'size_type' was not declared in this scope /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_initialize_range(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': /usr/include/c++/4.8/bits/stl_bvector.h:1007:8: error: 'size_type' does not name a type const size_type __n = std::distance(__first, __last); ^ /usr/include/c++/4.8/bits/stl_bvector.h:1008:16: error: '__n' was not declared in this scope _M_initialize(__n); ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_fill_assign(int, bool)': /usr/include/c++/4.8/bits/stl_bvector.h:1028:22: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] if (__n > size()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:1032:29: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] insert(end(), __n - size(), __x); ^ /usr/include/c++/4.8/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': /usr/include/c++/4.8/bits/stl_bvector.h:1061:8: error: 'size_type' does not name a type const size_type __len = std::distance(__first, __last); ^ /usr/include/c++/4.8/bits/stl_bvector.h:1062:6: error: '__len' was not declared in this scope if (__len < size()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:1062:19: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] if (__len < size()) ^ /usr/include/c++/4.8/bits/stl_bvector.h:1067:31: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] std::advance(__mid, size()); ^ In file included from /usr/include/c++/4.8/bits/functional_hash.h:35:0, from /usr/include/c++/4.8/bits/stl_bvector.h:1134, from /usr/include/c++/4.8/vector:65, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/hash_bytes.h: At global scope: /usr/include/c++/4.8/bits/hash_bytes.h:46:3: error: 'size_t' does not name a type size_t ^ /usr/include/c++/4.8/bits/hash_bytes.h:53:3: error: 'size_t' does not name a type size_t ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:62:44: error: 'size_t' was not declared in this scope struct hash<_Tp*> : public __hash_base<size_t, _Tp*> ^ /usr/include/c++/4.8/bits/functional_hash.h:62:56: error: template argument 1 is invalid struct hash<_Tp*> : public __hash_base<size_t, _Tp*> ^ /usr/include/c++/4.8/bits/functional_hash.h:64:7: error: 'size_t' does not name a type size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:80:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(bool) ^ /usr/include/c++/4.8/bits/functional_hash.h:80:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(bool) ^ /usr/include/c++/4.8/bits/functional_hash.h:80:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(bool) ^ /usr/include/c++/4.8/bits/functional_hash.h:83:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(char) ^ /usr/include/c++/4.8/bits/functional_hash.h:83:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(char) ^ /usr/include/c++/4.8/bits/functional_hash.h:83:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(char) ^ /usr/include/c++/4.8/bits/functional_hash.h:86:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(signed char) ^ /usr/include/c++/4.8/bits/functional_hash.h:86:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(signed char) ^ /usr/include/c++/4.8/bits/functional_hash.h:86:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(signed char) ^ /usr/include/c++/4.8/bits/functional_hash.h:89:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(unsigned char) ^ /usr/include/c++/4.8/bits/functional_hash.h:89:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(unsigned char) ^ /usr/include/c++/4.8/bits/functional_hash.h:89:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(unsigned char) ^ /usr/include/c++/4.8/bits/functional_hash.h:92:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(wchar_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:92:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(wchar_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:92:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(wchar_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:95:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(char16_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:95:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(char16_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:95:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(char16_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:98:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(char32_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:98:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(char32_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:98:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(char32_t) ^ /usr/include/c++/4.8/bits/functional_hash.h:101:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(short) ^ /usr/include/c++/4.8/bits/functional_hash.h:101:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(short) ^ /usr/include/c++/4.8/bits/functional_hash.h:101:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(short) ^ /usr/include/c++/4.8/bits/functional_hash.h:104:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(int) ^ /usr/include/c++/4.8/bits/functional_hash.h:104:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(int) ^ /usr/include/c++/4.8/bits/functional_hash.h:104:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(int) ^ /usr/include/c++/4.8/bits/functional_hash.h:107:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(long) ^ /usr/include/c++/4.8/bits/functional_hash.h:107:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(long) ^ /usr/include/c++/4.8/bits/functional_hash.h:107:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(long) ^ /usr/include/c++/4.8/bits/functional_hash.h:110:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:110:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:110:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:113:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(unsigned short) ^ /usr/include/c++/4.8/bits/functional_hash.h:113:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(unsigned short) ^ /usr/include/c++/4.8/bits/functional_hash.h:113:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(unsigned short) ^ /usr/include/c++/4.8/bits/functional_hash.h:116:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(unsigned int) ^ /usr/include/c++/4.8/bits/functional_hash.h:116:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(unsigned int) ^ /usr/include/c++/4.8/bits/functional_hash.h:116:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(unsigned int) ^ /usr/include/c++/4.8/bits/functional_hash.h:119:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(unsigned long) ^ /usr/include/c++/4.8/bits/functional_hash.h:119:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(unsigned long) ^ /usr/include/c++/4.8/bits/functional_hash.h:119:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(unsigned long) ^ /usr/include/c++/4.8/bits/functional_hash.h:122:3: error: 'size_t' was not declared in this scope _Cxx_hashtable_define_trivial_hash(unsigned long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:122:3: error: template argument 1 is invalid _Cxx_hashtable_define_trivial_hash(unsigned long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:122:3: error: 'size_t' does not name a type _Cxx_hashtable_define_trivial_hash(unsigned long long) ^ /usr/include/c++/4.8/bits/functional_hash.h:128:12: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:134:14: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:139:14: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:146:12: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:152:14: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:157:14: error: 'size_t' does not name a type static size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:164:45: error: 'size_t' was not declared in this scope struct hash<float> : public __hash_base<size_t, float> ^ /usr/include/c++/4.8/bits/functional_hash.h:164:58: error: template argument 1 is invalid struct hash<float> : public __hash_base<size_t, float> ^ /usr/include/c++/4.8/bits/functional_hash.h:166:7: error: 'size_t' does not name a type size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:176:46: error: 'size_t' was not declared in this scope struct hash<double> : public __hash_base<size_t, double> ^ /usr/include/c++/4.8/bits/functional_hash.h:176:60: error: template argument 1 is invalid struct hash<double> : public __hash_base<size_t, double> ^ /usr/include/c++/4.8/bits/functional_hash.h:178:7: error: 'size_t' does not name a type size_t ^ /usr/include/c++/4.8/bits/functional_hash.h:189:26: error: 'size_t' was not declared in this scope : public __hash_base<size_t, long double> ^ /usr/include/c++/4.8/bits/functional_hash.h:189:45: error: template argument 1 is invalid : public __hash_base<size_t, long double> ^ /usr/include/c++/4.8/bits/functional_hash.h:191:21: error: 'size_t' does not name a type _GLIBCXX_PURE size_t ^ In file included from /usr/include/c++/4.8/vector:65:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/stl_bvector.h:1144:26: error: 'size_t' was not declared in this scope : public __hash_base<size_t, _GLIBCXX_STD_C::vector<bool, _Alloc>> ^ /usr/include/c++/4.8/bits/stl_bvector.h:1144:69: error: template argument 1 is invalid : public __hash_base<size_t, _GLIBCXX_STD_C::vector<bool, _Alloc>> ^ /usr/include/c++/4.8/bits/stl_bvector.h:1146:7: error: 'size_t' does not name a type size_t ^ In file included from /usr/include/c++/4.8/vector:66:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/range_access.h:85:23: error: 'size_t' has not been declared template<class _Tp, size_t _Nm> ^ /usr/include/c++/4.8/bits/range_access.h:95:23: error: 'size_t' has not been declared template<class _Tp, size_t _Nm> ^ In file included from /usr/include/c++/4.8/vector:69:0, from suma_divizori.cpp:2: /usr/include/c++/4.8/bits/vector.tcc:66:13: error: variable or field 'reserve' declared void reserve(size_type __n) ^ /usr/include/c++/4.8/bits/vector.tcc:66:13: error: 'size_type' was not declared in this scope /usr/include/c++/4.8/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&)': /usr/include/c++/4.8/bits/vector.tcc:110:13: error: 'size_type' does not name a type const size_type __n = __position - begin(); ^ /usr/include/c++/4.8/bits/vector.tcc:129:48: error: '__n' was not declared in this scope return iterator(this->_M_impl._M_start + __n); ^ /usr/include/c++/4.8/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&)': /usr/include/c++/4.8/bits/vector.tcc:184:10: error: 'size_type' does not name a type const size_type __xlen = __x.size(); ^ /usr/include/c++/4.8/bits/vector.tcc:185:8: error: '__xlen' was not declared in this scope if (__xlen > capacity()) ^ /usr/include/c++/4.8/bits/vector.tcc:185:26: error: there are no arguments to 'capacity' that depend on a template parameter, so a declaration of 'capacity' must be available [-fpermissive] if (__xlen > capacity()) ^ /usr/include/c++/4.8/bits/vector.tcc:197:18: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] else if (size() >= __xlen) ^ /usr/include/c++/4.8/bits/vector.tcc:204:68: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), ^ /usr/include/c++/4.8/bits/vector.tcc:206:64: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] std::__uninitialized_copy_a(__x._M_impl._M_start + size(), ^ /usr/include/c++/4.8/bits/vector.tcc:211:55: error: '__xlen' was not declared in this scope this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; ^ /usr/include/c++/4.8/bits/vector.tcc: At global scope: /usr/include/c++/4.8/bits/vector.tcc:219:20: error: variable or field '_M_fill_assign' declared void _M_fill_assign(size_t __n, const value_type& __val) ^ /usr/include/c++/4.8/bits/vector.tcc:219:20: error: 'size_t' was not declared in this scope /usr/include/c++/4.8/bits/vector.tcc:219:32: error: expected primary-expression before 'const' _M_fill_assign(size_t __n, const value_type& __val) ^ /usr/include/c++/4.8/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': /usr/include/c++/4.8/bits/vector.tcc:262:8: error: 'size_type' does not name a type const size_type __len = std::distance(__first, __last); ^ /usr/include/c++/4.8/bits/vector.tcc:264:6: error: '__len' was not declared in this scope if (__len > capacity()) ^ /usr/include/c++/4.8/bits/vector.tcc:264:23: error: there are no arguments to 'capacity' that depend on a template parameter, so a declaration of 'capacity' must be available [-fpermissive] if (__len > capacity()) ^ /usr/include/c++/4.8/bits/vector.tcc:276:16: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] else if (size() >= __len) ^ /usr/include/c++/4.8/bits/vector.tcc:281:31: error: there are no arguments to 'size' that depend on a template parameter, so a declaration of 'size' must be available [-fpermissive] std::advance(__mid, size()); ^ /usr/include/c++/4.8/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::emplace(std::vector<_Tp, _Alloc>::iterator, _Args&& ...)': /usr/include/c++/4.8/bits/vector.tcc:297:8: error: 'size_type' does not name a type const size_type __n = __position - begin(); ^ /usr/include/c++/4.8/bits/vector.tcc:307:43: error: '__n' was not declared in this scope return iterator(this->_M_impl._M_start + __n); ^ /usr/include/c++/4.8/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, _Args&& ...)': /usr/include/c++/4.8/bits/vector.tcc:342:10: error: 'size_type' does not name a type const size_type __len = ^ /usr/include/c++/4.8/bits/vector.tcc:344:10: error: 'size_type' does not name a type const size_type __elems_before = __position - begin(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Suma Divizori face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.