Problem foodchain
User yanwen
Submission Time 2025-02-03 17:20:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include iostream
| ^~~~~~~~
foodchain.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
foodchain.cpp:5:2: error: ‘type’ was not declared in this scope; did you mean ‘typeof’?
5 | type A = value;
| ^~~~
| typeof
foodchain.cpp:5:7: error: expected ‘}’ before ‘A’
5 | type A = value;
| ^
foodchain.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^