Problem | beareatrabbit |
---|---|
User | hackerman123 |
Submission Time | 2023-03-14 20:52:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:25:17: error: expected ‘,’ before ‘[’ token
25 | d[i] = max([d[i - 1], d[i-2] + v[i]]);
| ^
| ,
beareatrabbit.cpp:25:17: error: expected identifier before ‘[’ token
beareatrabbit.cpp:25:24: error: expected ‘]’ before ‘,’ token
25 | d[i] = max([d[i - 1], d[i-2] + v[i]]);
| ^
| ]
beareatrabbit.cpp: In lambda function:
beareatrabbit.cpp:25:24: error: expected ‘{’ before ‘,’ token
beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:25:39: error: expected ‘)’ before ‘]’ token
25 | d[i] = max([d[i - 1], d[i-2] + v[i]]);
| ~ ^
| )