问题遇到的现象和发生背景
ubuntu下g++编译出错
问题相关代码,请勿粘贴截图
#include <ctime>
#include <iostream>
#include <math.h>
#include <string>
#include <fstream>
#include <random>
#include <strstream>
#include<iomanip>
using namespace std;
int main()
{
default_random_engine e;
...
}
test.cpp: In function ‘int main()’:
test.cpp:22:5: error: ‘default_random_engine’ was not declared in this scope
default_random_engine e;