In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_algobase.h: In instantiation of '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = magic; _OI = std::ostream_iterator<double>]':
/usr/include/c++/5/bits/stl_algobase.h:436:45: required from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = magic; _OI = std::ostream_iterator<double>]'
/usr/include/c++/5/bits/stl_algobase.h:469:8: required from '_OI std::copy(_II, _II, _OI) [with _II = magic; _OI = std::ostream_iterator<double>]'
prog.cpp:15:82: required from here
/usr/include/c++/5/bits/stl_algobase.h:391:57: error: no type named 'value_type' in 'struct std::iterator_traits<magic>'
typedef typename iterator_traits<_II>::value_type _ValueTypeI;
^
/usr/include/c++/5/bits/stl_algobase.h:393:64: error: no type named 'iterator_category' in 'struct std::iterator_traits<magic>'
typedef typename iterator_traits<_II>::iterator_category _Category;
^
/usr/include/c++/5/bits/stl_algobase.h:397:9: error: no type named 'value_type' in 'struct std::iterator_traits<magic>'
&& __are_same<_ValueTypeI, _ValueTypeO>::__value);
^
/usr/include/c++/5/bits/stl_algobase.h:400:44: error: no type named 'iterator_category' in 'struct std::iterator_traits<magic>'
_Category>::__copy_m(__first, __last, __result);
^