Problem omnomnom
User Tyx2019
Submission Time 2023-04-14 20:41:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp:24:21: error: missing terminating ' character
24 | return dp[take][x]'
| ^
omnomnom.cpp: In function ‘long long int getdp(long long int, long long int)’:
omnomnom.cpp:23:43: error: incompatible types in assignment of ‘long long int’ to ‘long long int [100005]’
23 | for(auto i:adj2[x]) dp[i]+=getdp(i,!take);
| ^
omnomnom.cpp:24:21: error: expected ‘;’ before ‘}’ token
24 | return dp[take][x]'
| ^
| ;
25 | }
| ~
omnomnom.cpp:28:43: error: incompatible types in assignment of ‘long long int’ to ‘long long int [100005]’
28 | for(auto i:adj2[x]) dp[i]+=getdp(i,!take);
| ^