| Problem | beareatrabbit |
|---|---|
| User | yuxiangt |
| Submission Time | 2026-02-14 18:07:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:9:8: error: expected ‘;’ before ‘vector’
9 | cin>>n
| ^
| ;
10 | vector<long long> rbt (n+1)
| ~~~~~~
beareatrabbit.cpp:11:18: error: ‘i’ was not declared in this scope
11 | for ( int i =1; i<n+1; i++){
| ^
beareatrabbit.cpp:17:25: error: ‘rbt’ was not declared in this scope
17 | dp [i] = max({dp[i-1],rbt[i]+dp[i-2],0ll});
| ^~~
beareatrabbit.cpp:17:44: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
17 | dp [i] = max({dp[i-1],rbt[i]+dp[i-2],0ll});
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/ios