Problem foodchain
User potatocabbage
Submission Time 2024-11-08 10:27:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int32_t main()’:
foodchain.cpp:9:19: error: invalid type argument of unary ‘*’ (have ‘int’)
9 | r = (a * (10 ** 9 + 9))* (b * (10 ** 9 + 9)) * (c * (10 ** 9 + 9)) * (d * (10 ** 9 + 9)) * (e * (10 ** 9 + 9));
| ^
foodchain.cpp:9:40: error: invalid type argument of unary ‘*’ (have ‘int’)
9 | r = (a * (10 ** 9 + 9))* (b * (10 ** 9 + 9)) * (c * (10 ** 9 + 9)) * (d * (10 ** 9 + 9)) * (e * (10 ** 9 + 9));
| ^
foodchain.cpp:9:62: error: invalid type argument of unary ‘*’ (have ‘int’)
9 | r = (a * (10 ** 9 + 9))* (b * (10 ** 9 + 9)) * (c * (10 ** 9 + 9)) * (d * (10 ** 9 + 9)) * (e * (10 ** 9 + 9));
| ^
foodchain.cpp:9:84: error: invalid type argument of unary ‘*’ (have ‘int’)
9 | r = (a * (10 ** 9 + 9))* (b * (10 ** 9 + 9)) * (c * (10 ** 9 + 9)) * (d * (10 ** 9 + 9)) * (e * (1