Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge #1245239 - Guess that Seeple's Error!

Name: Anonymous 2015-06-08 3:42

Are you enough of an F*CK*NG ENTERPRISE PROGRAMMER to figure out the syntax error that caused this mess? There is only one, I swear it. There are only two files, lel.cc (63 bytes over 6 lines), and lel.h (48 bytes over 5 lines). I'll photoshop a the Touhou of the winner's choice onto a nude photo themselves. Second place gets a gift certificate to Russia. Third gets a kick in the ass. Good luck!

[b]Error: Comment too long[/c] ... Fucking Admin-jew is trying to hide my thread. Well, I'll just post the second half in >>2 to spite him.

In file included from /usr/include/c++/4.8/iostream:38:0,
from lel.cc:2:
/usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++config.h:184:1: error: expected unqualified-id before 'namespace'
namespace std
^
In file included from /usr/include/c++/4.8/iosfwd:40:0,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/include/c++/4.8/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++/4.8/bits/stl_algobase.h:65:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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;
^
In file included from /usr/include/c++/4.8/ios:40:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/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++/4.8/bits/char_traits.h:106:14: error: 'size_t' in namespace 'std' does not name a type
static std::size_t
^
/usr/include/c++/4.8/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++/4.8/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++/4.8/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++/4.8/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++/4.8/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++/4.8/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++/4.8/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++/4.8/bits/char_traits.h:147:12: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ios:40:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/include/c++/4.8/bits/char_traits.h:147:24: error: expected ';' before '__i'
for (std::size_t __i = 0; __i < __n; ++__i)
^
/usr/include/c++/4.8/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++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:156:5: error: 'size_t' in namespace 'std' does not name a type
std::size_t
^
/usr/include/c++/4.8/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++/4.8/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++/4.8/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++/4.8/bits/char_traits.h:171:12: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ios:40:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/include/c++/4.8/bits/char_traits.h:171:24: error: expected ';' before '__i'
for (std::size_t __i = 0; __i < __n; ++__i)
^
/usr/include/c++/4.8/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++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/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++/4.8/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++/4.8/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++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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:91:20: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:93:22: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:20: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:22: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:27: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:29: note: suggested alternative:
In file included from /usr/include/wchar.h:52:0,
from /usr/include/c++/4.8/cwchar:44,
from /usr/include/c++/4.8/bits/postypes.h:40,
from /usr/include/c++/4.8/iosfwd:40,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/lib/gcc/arm-linux-gnueabihf/4.8/include/stddef.h:212:23: note: 'size_t'
typedef __SIZE_TYPE__ size_t;
^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
from /usr/include/arm-linux-gnueabihf/c++/4.8/bits/c++allocator.h:33,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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/arm-linux-gnueabihf/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/string:41,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc: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:62:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^
In file included from /usr/include/c++/4.8/string:41:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/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:96:15: error: 'ptrdiff_t' does not name a type
typedef ptrdiff_t difference_type;
^
In file included from /usr/include/c++/4.8/string:44:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from lel.cc:2:
/usr/include/c++/4.8/bits/ostream_insert.h:45:26: error: 'streamsize' has not been declared
const _CharT* __s, streamsize __n)
^
/usr/include/c++/4.8/bits/ostream_insert.h: In function 'void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)':
/usr/include/c++/4.8/bits/ostream_insert.h:50:13: error: 'streamsize' does not name a type
const streamsize __put = __out.rdbuf()->sputn(__s, __n);
^
/usr/include/c++/4.8/bits/ostream_insert.h:51:11: error: '__put' was not declared in this scope
if (__put != __n)
^
/usr/include/c++/4.8/bits/ostream_insert.h: At global scope:
/usr/include/c++/4.8/bits/ostream_insert.h:57:59: error: 'streamsize' has not been declared
__ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
^
/usr/include/c++/4.8/bits/ostream_insert.h:77:27: error: 'streamsize' has not been declared
const _CharT* __s, streamsize __n)
^

Name: Anonymous 2015-06-09 18:48

>>7
>>14
It's because of C-based syntax. That end case stuff in Ada (for example) is not only for readability, but also so compilers can have more accurate error reporting.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List