Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ encrypt.cpp -o encrypt -g -std=c++11
- In file included from /usr/include/c++/4.8/vector:63:0,
- from encrypt.cpp:2:
- /usr/include/c++/4.8/bits/stl_uninitialized.h: In instantiation of ‘static void std::__uninitialized_default_n_1<true>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = char (*)[8]; _Size = long unsigned int]’:
- /usr/include/c++/4.8/bits/stl_uninitialized.h:544:33: required from ‘void std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = char (*)[8]; _Size = long unsigned int]’
- /usr/include/c++/4.8/bits/stl_uninitialized.h:605:50: required from ‘void std::__uninitialized_default_n_a(_ForwardIterator, _Size, std::allocator<_Tp>&) [with _ForwardIterator = char (*)[8]; _Size = long unsigned int; _Tp = char [8]]’
- /usr/include/c++/4.8/bits/stl_vector.h:1225:28: required from ‘void std::vector<_Tp, _Alloc>::_M_default_initialize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = char [8]; _Alloc = std::allocator<char [8]>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
- /usr/include/c++/4.8/bits/stl_vector.h:271:34: required from ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = char [8]; _Alloc = std::allocator<char [8]>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<char [8]>]’
- encrypt.cpp:9:39: required from here
- /usr/include/c++/4.8/bits/stl_uninitialized.h:515:42: error: functional cast to array type ‘_ValueType {aka char [8]}’
- std::fill_n(__first, __n, _ValueType());
- ^
- make: *** [encrypt] Error 1
Advertisement
Add Comment
Please, Sign In to add comment