Problem construct
User hwy
Submission Time 2023-06-27 00:40:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

construct.cpp: In function ‘int main()’:
construct.cpp:16:27: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘const ll’ {aka ‘const long long int’} to binary ‘operator%’
16 | cout << (N*pow(N-1, M-1))%MOD;
| ~~~~~~~~~~~~~~~~~^~~~
| | |
| | const ll {aka const long long int}
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}