Problem | friend |
---|---|
User | Xiaoyang |
Submission Time | 2023-11-30 22:27:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
friend.cpp: In function ‘ll dfs(ll, ll, bool)’:
friend.cpp:32:32: error: ‘i’ was not declared in this scope
32 | if(flag)return dp[u][flag]=c[i];
| ^
friend.cpp:38:7: error: ‘i’ was not declared in this scope
38 | dp[i][flag]=max(dp[i][flag],dfs(x,u,0);
| ^
friend.cpp:38:42: error: expected ‘)’ before ‘;’ token
38 | dp[i][flag]=max(dp[i][flag],dfs(x,u,0);
| ~ ^
| )
friend.cpp:40:7: error: ‘i’ was not declared in this scope
40 | dp[i][flag]+=dfs(x,u,1);
| ^