Problem foodchain
User gab
Submission Time 2025-04-29 16:54:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> a >> b >> c >> d >> e;
| ^~~
| std::cin
In file included from foodchain.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
foodchain.cpp:6:20: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
6 | return (a*b*c*d*e)%(10e9+9)
| ~~~~~~~~~~~^~~~~~~~~
| | |
| int double
foodchain.cpp:6:29: error: expected ‘;’ before ‘}’ token
6 | return (a*b*c*d*e)%(10e9+9)
| ^
| ;
7 | }
| ~