Problem | foodchain |
---|---|
User | Red123 |
Submission Time | 2025-08-23 16:38:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foodchain.cpp: In function ‘int main()’:
foodchain.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘for’
10 | for(int i = 0; i < n; i++){
| ^~~
foodchain.cpp:10:17: error: ‘i’ was not declared in this scope
10 | for(int i = 0; i < n; i++){
| ^
foodchain.cpp:14:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
14 | cin >> pagong % mod;
| ~~~ ^~ ~~~~~~~~~~~~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
In file included 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/istream:120:7: note: candidate