Problem | omnomnom |
---|---|
User | asbx |
Submission Time | 2023-12-16 09:52:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
omnomnom.cpp:13:26: error: ‘long long int dp(long long int, long long int)’ redeclared as different kind of entity
13 | int dp(int node,int taken){
| ^
omnomnom.cpp:11:5: note: previous declaration ‘long long int dp [100005][2]’
11 | int dp[100005][2];
| ^~
omnomnom.cpp: In function ‘long long int dp(long long int, long long int)’:
omnomnom.cpp:18:15: error: ‘dp’ cannot be used as a function
18 | ans+=dp(k,0);
| ^
omnomnom.cpp:23:19: error: ‘dp’ cannot be used as a function
23 | ans+=max(dp(k,0),dp(k,1));
| ^
omnomnom.cpp:23:27: error: ‘dp’ cannot be used as a function
23 | ans+=max(dp(k,0),dp(k,1));
| ^