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

Compile Error

valves.cpp: In function ‘void update(long long unsigned int, long long unsigned int, long long unsigned int)’:
valves.cpp:8:25: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
8 | fw[tx] = (fw[tx]+v)%mod, fw2[tx] = (fw2 - ((v * (x - 1))%mod))%mod;
| ^~~
| modf
valves.cpp: In function ‘long long unsigned int sum(long long unsigned int)’:
valves.cpp:16:14: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
16 | return res%mod;
| ^~~
| modf