I am using icpc with -std=c++0x, in which "std::uniform_real_distribution<double> rnd" throws a couple of errors during compile time, like
WangLandau.h(103): error: qualified name is not allowed
std::uniform_real_distribution<double> rnd;
^
WangLandau.h(103): error #77: this declaration has no storage class or type specifier
std::uniform_real_distribution<double> rnd;
^
WangLandau.h(103): error: expected a ";"
std::uniform_real_distribution<double> rnd;
^
WangLandau2d.h(92): error: qualified name is not allowed
std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);
^
WangLandau2d.h(92): error #77: this declaration has no storage class or type specifier
std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);
^
WangLandau2d.h(92): error: expected a ";"
std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);
Where am I going wrong ?
^