| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77012 | 刘世杰 | 只出现一次的字符 | C++ | Compile Error | 0 MS | 0 KB | 307 | 2024-06-08 09:23:12 |
include<iostream> #include<string> using namespace std; int main(){ string s; int a[28]={0},i; cin>>s; for(i=0;i<s.size();++i) a[s[i]-'a']++; for(i=0;i<s.size();++i) if(a[s[i]-'a']==1) break; if(i<s.size()) cout<<s[i]; else cout<<"no"; return 0; }
Main.cc:1:1: error: 'include' does not name a type
include
^
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/string:40,
from Main.cc: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 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/string:40,
from Main.cc:2:
/usr/include/c++/5/type_traits:326:31: error: 'std::size_t' has not been declared
template
^
/usr/include/c++/5/type_traits:525:37: error: 'nullptr_t' is not a member of 'std'
struct __is_null_pointer_helper
^
/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
^
/usr/include/c++/5/type_traits:1411:32: error: 'size_t' is not a member of 'std'
: public integral_constant { };
^
/usr/include/c++/5/type_traits:1411:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/5/type_traits:1411:61: error: template argument 1 is invalid
: public integral_constant { };
^
/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 { };
^
/usr/include/c++/5/type_traits:1416:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/5/type_traits:1416:46: error: template argument 1 is invalid
: public integral_constant { };
^
/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
^
/usr/include/c++/5/type_traits:1420:32: error: 'size_t' is not a member of 'std'
: public integral_constant::value> { };
^
/usr/include/c++/5/type_traits:1420:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/5/type_traits:1420:65: error: template argument 1 is invalid
: public integral_constant::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::value> { };
^
/usr/include/c++/5/type_traits:1424:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/5/type_traits:1424:65: error: template argument 1 is invalid
: public integral_constant::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 { };
^
/usr/include/c++/5/type_traits:1429:32: error: 'size_t' is not a member of 'std'
/usr/include/c++/5/type_traits:1429:46: error: template argument 1 is invalid
: public integral_constant { };
^
/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
^
/usr/include/c++/5/type_traits:1433:32: error: 'size_t' is not a member of 'std'
: public integral_constant::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::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
^
/usr/include/c++/5/type_traits:1905:31: error: 'std::size_t' has not been declared
template
^
/usr/include/c++/5/type_traits:1964:17: error: 'std::size_t' has not been declared
template
^
/usr/include/c++/5/type_traits:1984:17: error: 'std::size_t' has not been declared
template
^
/usr/include/c++/5/type_traits:2030:20: error: 'size_t' does not name a type
static const size_t _S_len = _Len > __strictest::_S_size
^
/usr/include/c++/5/type_traits:2034:20: error: 'size_t' does not name a type
static const size_t alignment_value = __strictest::_S_alignment;
^
/usr/include/c++/5/type_traits:2036:40: error: '_S_len' was not declared in this scope
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^
/usr/include/c++/5/type_traits:2036:48: error: 'alignment_value' was not declared in this scope
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^
/usr/include/c++/5/type_traits:2036:63: error: template argument 1 is invalid
typedef typename aligned_storage<_S_len, alignment_value>::type type;
^
/usr/include/c++/5/type_traits:2036:63: error: template argument 2 is invalid
/usr/include/c++/5/type_traits:2039:13: error: 'size_t' has not been declared
template
^
/usr/include/c++/5/type_traits:2040:11: error: 'size_t' does not name a type
const size_t aligned_union<_Len, _Types...>::alignment_value;
^
In file included from /usr/include/c++/5/bits/stl_pair.h:59:0,
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/string:40,
from Main.cc:2:
/usr/include/c++/5/bits/move.h:193:26: error: 'size_t' has not been declared
template
^
/usr/include/c++/5/bits/move.h: In function 'void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])':
/usr/include/c++/5/bits/move.h:200:12: error: 'size_t' was not declared in this scope
for (size_t __n = 0; __n < _Nm; ++__n)
^
/usr/include/c++/5/bits/move.h:200:28: error: '__n' was not declared in this scope
for (size_t __n = 0; __n < _Nm; ++__n)
^
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/string:40,
from Main.cc:2:
/usr/include/c++/5/bits/stl_pair.h: At global scope:
/usr/include/c++/5/bits/stl_pair.h:85:17: error: 'std::size_t' has not been declared
template
^
/usr/include/c++/5/bits/stl_pair.h:204:41: error: 'std::size_t' has not been declared
template
^
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/string:40,
from Main.cc:2:
/usr/include/c++/5/bits/stl_iterator_base_types.h:116:67: error: 'ptrdiff_t' does not name a type
template::__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;
^
/usr/include/c++/5/bits/stl_algobase.h: In function 'typename __gnu_cxx::__enable_if::__value, void>::__type std::__fill_a(_Tp*, _Tp*, const _Tp&)':
/usr/include/c++/5/bits/stl_algobase.h:722:11: error: expected primary-expression before 'const'
if (const size_t __len = __last - __first)
^
/usr/include/c++/5/bits/stl_algobase.h:722:11: error: expected ')' before 'const'
/usr/include/c++/5/bits/stl_algobase.h:723:63: error: '__len' was not declared in this scope
__builtin_memset(__first, static_cast(__tmp), __len);
^
/usr/include/c++/5/bits/stl_algobase.h: In static member function 'static bool std::__equal::equal(const _Tp*, const _Tp*, const _Tp*)':
/usr/include/c++/5/bits/stl_algobase.h:829:8: error: expected primary-expression before 'const'
if (const size_t __len = (__last1 - __first1))
^
/usr/include/c++/5/bits/stl_algobase.h:829:8: error: expected ')' before 'const'
/usr/include/c++/5/bits/stl_algobase.h:830:65: error: '__len' was not declared in this scope
return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) * __len);
^
/usr/include/c++/5/bits/stl_algobase.h: In static member function 'static bool std::__lexicographical_compare::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)':
/usr/include/c++/5/bits/stl_algobase.h:933:10: error: 'size_t' does not name a type
const size_t __len1 = __last1 - __first1;
^
/usr/include/c++/5/bits/stl_algobase.h:934:10: error: 'size_t' does not name a type
const size_t __len2 = __last2 - __first2;
^
/usr/include/c++/5/bits/stl_algobase.h:935:8: error: expected primary-expression before 'const'
if (const size_t __len = std::min(__len1, __len2))
^
/usr/include/c++/5/bits/stl_algobase.h:935:8: error: expected ')' before 'const'
/usr/include/c++/5/bits/stl_algobase.h:936:62: error: '__len' was not declared in this scope
if (int __result = __builtin_memcmp(__first1, __first2, __len))
^
/usr/include/c++/5/bits/stl_algobase.h:938:11: error: '__len1' was not declared in this scope
return __len1 < __len2;
^
/usr/include/c++/5/bits/stl_algobase.h:938:20: error: '__len2' was not declared in this scope
return __len1 < __len2;
^
In file included from /usr/include/c++/5/bits/char_traits.h:40:0,
from /usr/include/c++/5/string:40,
from Main.cc:2:
/usr/include/c++/5/bits/postypes.h: At global scope:
/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/string:40:0,
from Main.cc:2:
/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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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/string:40:0,
from Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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/string:40:0,
from Main.cc: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/exception:162:0,
from /usr/include/c++/5/new:40,
from /usr/include/c++/5/ext/new_allocator.h:33,
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 Main.cc: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/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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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/bits/char_traits.h:40,
from /usr/include/c++/5/string:40,
from Main.cc: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 Main.cc: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 Main.cc: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 Main.cc: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 Main.cc: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 Main.cc: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 Main.cc: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 Main.cc:2:
/usr/include/c++/5/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits >':
/usr/include/c++/5/bits/basic_string.h:74:24: required from 'class std::__cxx11::basic_string'
/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 >'
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 >'
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 >::_Base_type {aka std::allocator_traits >}::max_size' in '__gnu_cxx::__alloc_traits >::_Base_type {aka struct std::allocator_traits >}'
using _Base_type::max_size;
^
In file included from /usr/include/c++/5/string:52:0,
from Main.cc: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 Main.cc:2:
/usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template _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 Main.cc: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 Main.cc:2:
/usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template _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 Main.cc: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 Main.cc:2:
/usr/include/c++/5/ext/string_conversions.h:54:5: note: candidate: template _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 Main.cc: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)':