In file included from /usr/include/c++/4.8/random:52:0,
from prog.cpp:6:
/usr/include/c++/4.8/bits/random.tcc: In instantiation of ‘std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomNumberGenerator&, const std::uniform_int_distribution<_IntType>::param_type&) [with _UniformRandomNumberGenerator = int; _IntType = unsigned int; std::uniform_int_distribution<_IntType>::result_type = unsigned int]’:
/usr/include/c++/4.8/bits/stl_algo.h:4410:67: required from ‘void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = int*; _UGenerator = int]’
prog.cpp:26:44: required from here
/usr/include/c++/4.8/bits/random.tcc:883:4: error: ‘int’ is not a class, struct, or union type
_Gresult_type;
^
/usr/include/c++/4.8/bits/random.tcc:886:4: error: ‘int’ is not a class, struct, or union type
__uctype;
^
/usr/include/c++/4.8/bits/random.tcc:903:32: error: expression cannot be used as a function
__ret = __uctype(__urng()) - __urngmin;
^
/usr/include/c++/4.8/bits/random.tcc:930:36: error: expression cannot be used as a function
__ret = __tmp + (__uctype(__urng()) - __urngmin);
^
/usr/include/c++/4.8/bits/random.tcc:935:28: error: expression cannot be used as a function
__ret = __uctype(__urng()) - __urngmin;
^