①random.hがincludeできない。
#include "random.h"とすると
test.cpp:1:10: fatal error: random.h: No such file or directory
#include "random.h"
^~~~~~
compilation terminated.
というエラーが出ます。
#include <random>
または
#include <sys/random.h>
とするとエラーはなくなるのですが、これでいいのでしょうか?
② #include <random> または #include <sys/random.h>としてもauto gen=Random(seed)でエラーが出る。
#include <random> または #include <sys/random.h>としても
random.cpp:27:16: error: 'Random' was not declared in this scope
auto gen = Random(seed);
というエラーが出ます。