While compiling the above code this is the error which i am getting.
#include <random>
#include <iostream>
int main()
{
std::default_random_engine generator;
std::uniform_int_distribution<int> distribution(1,6);
int dice_roll = distribution(generator); // generates number in the range 1..6
}
In file included from /usr/include/c++/4.8/random:35:0, from fv.cpp:1: /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
My gcc version is g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Please help me