Problem omnomnom
User asbx
Submission Time 2023-12-16 11:23:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp: In function ‘long long int dp(long long int, long long int)’:
omnomnom.cpp:20:12: error: ‘r’ was not declared in this scope
20 | if(node==r){
| ^
omnomnom.cpp:25:16: error: ‘p’ was not declared in this scope; did you mean ‘dp’?
25 | else ans+=dp(p[node],0)
| ^
| dp
omnomnom.cpp:28:12: error: ‘r’ was not declared in this scope
28 | if(node==r){
| ^
omnomnom.cpp:33:16: error: ‘p’ was not declared in this scope; did you mean ‘dp’?
33 | else ans+=dp(p[node],0);
| ^
| dp