Hello, does anyone know how to solve this one?
ShipDefense.cpp: In function 'long int LaserEffectEvent(LPEVENT, long int)':
ShipDefense.cpp:480:8: error: 'random_device' is not a member of 'std'
std::random_device RandomDevice;
^~~~~~~~~~~~~
ShipDefense.cpp:480:8: note: suggested alternative: 'ratio_divide'
std::random_device RandomDevice;
^~~~~~~~~~~~~
ratio_divide
ShipDefense.cpp:481:8: error: 'mt19937' is not a member of 'std'
std::mt19937 Generate(RandomDevice());
^~~~~~~
ShipDefense.cpp:482:8: error: 'uniform_real_distribution' is not a member of 'std'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~~~~~~~~~~~~~~~~
ShipDefense.cpp:482:8: note: suggested alternative: 'uniform_int_distribution'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~~~~~~~~~~~~~~~~
uniform_int_distribution
ShipDefense.cpp:482:34: error: expected primary-expression before '>' token
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^
ShipDefense.cpp:482:36: error: 'Distribute' was not declared in this scope
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~
ShipDefense.cpp:482:36: note: suggested alternative: 'CAttribute'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~
CAttribute
ShipDefense.cpp:498:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
^~~~~~~~
ShipDefense.cpp:498:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= uiSpawnProbability)
^~~~~~~~
rename
ShipDefense.cpp: In function 'long int SpawnEvent(LPEVENT, long int)':
ShipDefense.cpp:598:7: error: 'random_device' is not a member of 'std'
std::random_device RandomDevice;
^~~~~~~~~~~~~
ShipDefense.cpp:598:7: note: suggested alternative: 'ratio_divide'
std::random_device RandomDevice;
^~~~~~~~~~~~~
ratio_divide
ShipDefense.cpp:599:7: error: 'mt19937' is not a member of 'std'
std::mt19937 Generate(RandomDevice());
^~~~~~~
ShipDefense.cpp:600:7: error: 'uniform_real_distribution' is not a member of 'std'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~~~~~~~~~~~~~~~~
ShipDefense.cpp:600:7: note: suggested alternative: 'uniform_int_distribution'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~~~~~~~~~~~~~~~~
uniform_int_distribution
ShipDefense.cpp:600:33: error: expected primary-expression before '>' token
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^
ShipDefense.cpp:600:35: error: 'Distribute' was not declared in this scope
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~
ShipDefense.cpp:600:35: note: suggested alternative: 'CAttribute'
std::uniform_real_distribution<> Distribute(ShipDefense::MIN_PROB, ShipDefense::MAX_PROB);
^~~~~~~~~~
CAttribute
ShipDefense.cpp:632:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
ShipDefense.cpp:632:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
rename
ShipDefense.cpp:635:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
^~~~~~~~
ShipDefense.cpp:635:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 30) // 3%
^~~~~~~~
rename
ShipDefense.cpp:661:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
ShipDefense.cpp:661:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
rename
ShipDefense.cpp:664:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
^~~~~~~~
ShipDefense.cpp:664:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 40) // 4%
^~~~~~~~
rename
ShipDefense.cpp:690:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
ShipDefense.cpp:690:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 10) // 1%
^~~~~~~~
rename
ShipDefense.cpp:693:36: error: 'Generate' was not declared in this scope
if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
^~~~~~~~
ShipDefense.cpp:693:36: note: suggested alternative: 'rename'
if (static_cast<UINT>(Distribute(Generate)) <= 50) // 5%
^~~~~~~~
rename
gmake: *** [Makefile:162: .obj/ShipDefense.o] Error 1
gmake: *** Waiting for unfinished jobs....