[ create a new paste ] login | about

Link: http://codepad.org/bC2VIMF6    [ raw code | output | fork ]

C++, pasted on Jun 28:
1
2
3
4
5
6
7
#include <string>
 
int main()
{
        std::string s;
        s[0];
}


Output:
1
2
3
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:707: typename _Alloc::rebind<_CharT>::other::reference std::basic_string<_CharT, _Traits, _Alloc>::operator[](typename _Alloc::rebind<_CharT>::other::size_type) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]: Assertion '__pos < size()' failed.

Disallowed system call: SYS_kill


Create a new paste based on this one


Comments: