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

Compile Error

valves.cpp:5:9: error: expected initializer before numeric constant
5 | int mod 1e9+7;
| ^~~
valves.cpp: In function ‘void update(long long int, long long int, long long int)’:
valves.cpp:9:25: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
9 | fw[tx] = (fw[tx]+v)%mod, fw2[tx] = (fw2 - ((v * (x - 1))%mod))%mod;
| ^~~
| modf
valves.cpp: In function ‘long long int sum(long long int)’:
valves.cpp:17:14: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
17 | return res%mod;
| ^~~
| modf