Problem scicom
User shenshiqi
Submission Time 2026-01-06 07:17:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scicom.cpp: In function ‘int main()’:
scicom.cpp:3:44: error: no matching function for call to ‘std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>::mersenne_twister_engine(std::random_device&)’
3 | int main(){random_device rd; mt19937 rng(rd); uniform_int_distribution<int> dist(0, 127); string n, m; cin >> n >>m; cout << n << " Silver\n"; return dist(rng);}
| ^
In file included from /usr/include/c++/9/random:49,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:108,
from scicom.cpp:1:
/usr/include/c++/9/bits/random.h:530:9: note: candidate: ‘template<class _Sseq, class> std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>::mersenne_twister_engine(_Sseq&)’
530 | mersenne_twist