Problem goodprogrammer
User jeongwonho64
Submission Time 2023-03-31 20:58:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodprogrammer.cpp: In function ‘int main()’:
goodprogrammer.cpp:6:8: error: no match for ‘operator%’ (operand types are ‘std::mt19937_64’ {aka ‘std::mersenne_twister_engine<long unsigned int, 64, 312, 156, 31, 13043109905998158313, 29, 6148914691236517205, 17, 8202884508482404352, 37, 18444473444759240704, 43, 6364136223846793005>’} and ‘int’)
6 | if(rng%2 == 0)return 0;
| ~~~^~
| | |
| | int
| std::mt19937_64 {aka std::mersenne_twister_engine<long unsigned int, 64, 312, 156, 31, 13043109905998158313, 29, 6148914691236517205, 17, 8202884508482404352, 37, 18444473444759240704, 43, 6364136223846793005>}
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from goodprogrammer.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std