Submission #00284
ソースコード
ステータス
項目 |
データ |
問題 |
0002 - Rubik's Cube |
ユーザー名 |
ei1333
|
投稿日時 |
2017-08-31 22:49:46 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
182 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/random:51:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:108,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/random.tcc: In instantiation of ‘typename std::enable_if<std::is_class<_Sseq>::value>::type std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>::seed(_Sseq&) [with _Sseq = std::random_device; _UIntType = long unsigned int; long unsigned int __w = 32; long unsigned int __n = 624; long unsigned int __m = 397; long unsigned int __r = 31; _UIntType __a = 2567483615; long unsigned int __u = 11; _UIntType __d = 4294967295; long unsigned int __s = 7; _UIntType __b = 2636928640; long unsigned int __t = 15; _UIntType __c = 4022730752; long unsigned int __l = 18; _UIntType __f = 1812433253; typename std::enable_if<std::is_class<_Sseq>::value>::type = void]’:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/random.h:509:15: required from ‘std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>::mersenne_twister_engine(_Sseq&) [with _Sseq = std::random_device; <template-parameter-2-2> = void; _UIntType = long unsigned int; long unsigned int __w = 32; long unsigned int __n = 624; long unsigned int __m = 397; long unsigned int __r = 31; _UIntType __a = 2567483615; long unsigned int __u = 11; _UIntType __d = 4294967295; long unsigned int __s = 7; _UIntType __b = 2636928640; long unsigned int __t = 15; _UIntType __c = 4022730752; long unsigned int __l = 18; _UIntType __f = 1812433253]’
./Main.cpp:8:17: required from here
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/random.tcc:360:6: error: ‘class std::random_device’ has no member named ‘generate’
__q.generate(__arr + 0, __arr + __n * __k);
~~~~^~~~~~~~
セット
テストケース