In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/i686-pc-linux-gnu/bits/c++allocator.h:34:0,
from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/allocator.h:48,
from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/vector:62,
from prog.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h: In instantiation of '__gnu_cxx::new_allocator<const int>':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/allocator.h:87:5: instantiated from 'std::allocator<const int>'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:71:60: instantiated from 'std::_Vector_base<const int, std::allocator<const int> >'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:171:5: instantiated from 'std::vector<const int>'
prog.cpp:6:24: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h:79:7: error: 'const _Tp* __gnu_cxx::new_allocator<_Tp>::address(const _Tp&) const [with _Tp = const int, const _Tp* = const int*, const _Tp& = const int&]' cannot be overloaded
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h:76:7: error: with '_Tp* __gnu_cxx::new_allocator<_Tp>::address(_Tp&) const [with _Tp = const int, _Tp* = const int*, _Tp& = const int&]'
prog.cpp: In function 'int main()':
prog.cpp:10:1: error: 'cout' is not a member of 'std'
prog.cpp:10:35: error: 'endl' is not a member of 'std'
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/vector:69:0,
from prog.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<const int> >, typename std::vector<_Tp, _Alloc>::_Base::_Tp_alloc_type::pointer = const int*]':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:100:4: instantiated from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:755:9: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = const int, _Alloc = std::allocator<const int>, value_type = const int]'
prog.cpp:7:14: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:314:4: error: assignment of read-only location '__position.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = const int*, _Container = std::vector<const int>, __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = const int&]()'
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/i686-pc-linux-gnu/bits/c++allocator.h:34:0,
from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/allocator.h:48,
from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/vector:62,
from prog.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h: In member function 'void __gnu_cxx::new_allocator<_Tp>::deallocate(_Tp*, __gnu_cxx::new_allocator::size_type) [with _Tp = const int, _Tp* = const int*, __gnu_cxx::new_allocator::size_type = unsigned int]':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:146:4: instantiated from 'void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(typename _Alloc::rebind<_Tp>::other::pointer, size_t) [with _Tp = const int, _Alloc = std::allocator<const int>, typename _Alloc::rebind<_Tp>::other::pointer = const int*, size_t = unsigned int]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:132:9: instantiated from 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = const int, _Alloc = std::allocator<const int>]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:208:15: instantiated from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = const int, _Alloc = std::allocator<const int>]'
prog.cpp:6:24: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h:95:9: error: invalid conversion from 'const void*' to 'void*'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/ext/new_allocator.h:95:9: error: initializing argument 1 of 'void operator delete(void*)'
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/vector:61:0,
from prog.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a(_BI1, _BI1, _BI2) [with bool _IsMove = true, _BI1 = const int*, _BI2 = const int*]':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:610:34: instantiated from '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true, _BI1 = const int*, _BI2 = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:681:15: instantiated from '_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = const int*, _BI2 = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:308:4: instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<const int> >, typename std::vector<_Tp, _Alloc>::_Base::_Tp_alloc_type::pointer = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:100:4: instantiated from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:755:9: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = const int, _Alloc = std::allocator<const int>, value_type = const int]'
prog.cpp:7:14: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:601:18: error: no matching function for call to 'std::__copy_move_backward<true, true, std::random_access_iterator_tag>::__copy_move_b(const int*&, const int*&, const int*&)'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h: In function '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = true, _II = const int*, _OI = const int*]':
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:442:39: instantiated from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true, _II = const int*, _OI = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:474:18: instantiated from '_OI std::copy(_II, _II, _OI) [with _II = std::move_iterator<const int*>, _OI = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_uninitialized.h:92:53: instantiated from 'static _ForwardIterator std::__uninitialized_copy<true>::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<const int*>, _ForwardIterator = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_uninitialized.h:116:46: instantiated from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<const int*>, _ForwardIterator = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_uninitialized.h:318:63: instantiated from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<const int*>, _ForwardIterator = const int*, _Tp = const int]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_uninitialized.h:328:24: instantiated from '_ForwardIterator std::__uninitialized_move_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = const int*, _ForwardIterator = const int*, _Allocator = std::allocator<const int>]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:338:8: instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<const int> >, typename std::vector<_Tp, _Alloc>::_Base::_Tp_alloc_type::pointer = const int*]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/vector.tcc:100:4: instantiated from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int}, _Tp = const int, _Alloc = std::allocator<const int>]'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_vector.h:755:9: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = const int, _Alloc = std::allocator<const int>, value_type = const int]'
prog.cpp:7:14: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/bits/stl_algobase.h:404:70: error: no matching function for call to 'std::__copy_move<true, true, std::random_access_iterator_tag>::__copy_m(const int*&, const int*&, const int*&)'