Problem foodchain
User Haocheng
Submission Time 2024-11-07 13:49:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int32_t main()’:
foodchain.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
foodchain.cpp:7:2: note: in expansion of macro ‘int’
7 | int a[5];
| ^~~
foodchain.cpp:8:30: error: ‘a’ was not declared in this scope
8 | for(int i=0; i<5; i++) cin>>a[i];
| ^
foodchain.cpp:9:10: error: ‘a’ was not declared in this scope
9 | int ans=a[0]%mod;
| ^