Problem | valves |
---|---|
User | AlphanumericUsername |
Submission Time | 2022-12-28 14:09:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
valves.cpp: In function ‘void update(long long unsigned int, long long unsigned int, long long unsigned int)’:
valves.cpp:9:24: error: invalid operands of types ‘long long unsigned int’ and ‘double’ to binary ‘operator%’
9 | fw[tx] = (fw[tx]+v)%mod, fw2[tx] = (fw2 - ((v * (x - 1))%mod))%mod;
| ~~~~~~~~~~^
| |
| long long unsigned int
valves.cpp:9:61: error: invalid operands of types ‘long long unsigned int’ and ‘double’ to binary ‘operator%’
9 | fw[tx] = (fw[tx]+v)%mod, fw2[tx] = (fw2 - ((v * (x - 1))%mod))%mod;
| ~~~~~~~~~~~~~^
| |
| long long unsigned int
valves.cpp: In function ‘long long unsigned int sum(long long unsigned int)’:
valves.cpp:17:13: error: invalid operands of types ‘long long unsigned