Problem foodchain
User smartsword
Submission Time 2025-02-03 17:00:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘long long int calculate_milk(long long int, long long int, long long int, long long int, long long int)’:
foodchain.cpp:7:3: error: expected ‘,’ or ‘;’ before ‘result’
7 | result = (result * = b) % MOD
| ^~~~~~
foodchain.cpp: In function ‘int main()’:
foodchain.cpp:18:43: error: ‘end1’ was not declared in this scope
18 | cout << calculate_milk(a, b, c, d, e) << end1
| ^~~~