Problem beareatrabbit
User hackerman123
Submission Time 2023-03-14 20:51:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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]])
| ~ ^
| )