Problem foodchain
User Wheezycantcode
Submission Time 2024-02-23 17:16:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:8:13: error: redeclaration of ‘__int128 n’
8 | __int128_t n = e*d*c*b*a;
| ^
foodchain.cpp:6:13: note: ‘__int128 n’ previously declared here
6 | __int128_t n;
| ^
foodchain.cpp:9:7: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__int128’)
9 | cout << n%1000000009;
| ~~~~ ^~ ~~~~~~~~~~~~
| | |
| | __int128
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foodchain.cpp:1:
/usr/include/c++/9/os