Problem construct
User MagicHenry
Submission Time 2024-02-18 13:43:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

construct.cpp: In function ‘int main()’:
construct.cpp:7:16: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
7 | ans = (ans*n)%1e9;
| ~~~~~~~^~~~
| | |
| int double