Problem | feast |
---|---|
User | Rolo |
Submission Time | 2024-04-13 08:23:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
feast.cpp: In function ‘int main()’:
feast.cpp:35:42: error: expected ‘)’ before ‘{’ token
35 | if((max(dp[n][0],dp[n][1]).second >= k)
| ~ ^
| )
36 | {
| ~
feast.cpp:43:2: error: expected primary-expression before ‘}’ token
43 | }
| ^
feast.cpp:46:23: error: expected ‘;’ before ‘for’
46 | dp[0][1] = {-1e15,0}
| ^
| ;
47 | for(int i = 1;i<=n;i++)
| ~~~
feast.cpp:47:17: error: ‘i’ was not declared in this scope; did you mean ‘hi’?
47 | for(int i = 1;i<=n;i++)
| ^
| hi