Problem valves
User AlphanumericUsername
Submission Time 2022-12-28 14:10:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

valves.cpp: In function ‘void update(long long int, long long int, long long int)’:
valves.cpp:9:67: error: invalid operands of types ‘long long int*’ and ‘long long int’ to binary ‘operator%’
9 | fw[tx] = (fw[tx]+v)%mod, fw2[tx] = (fw2 - ((v * (x - 1))%mod))%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
| | |
| long long int* long long int