Problem omnomnom
User asbx
Submission Time 2023-12-16 09:49:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp:11:1: error: ‘vector’ does not name a type
11 | vector<int> adjList[100005];
| ^~~~~~
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:10:5: note: previous declaration ‘long long int dp [100005][2]’
10 | int dp[100005][2];
| ^~
omnomnom.cpp: In function ‘long long int dp(long long int, long long int)’:
omnomnom.cpp:17:15: error: ‘child’ was not declared in this scope
17 | ans+=sum(dp(child,0))+1
| ^~~~~
omnomnom.cpp:17:22: error: ‘dp’ cannot be used as a function
17 | ans+=sum(dp(child,0))+1
| ^
omnomnom.cpp:17:8: error: ‘sum’ was not declared in this scope
17 | ans+=sum(dp(child,0))+1
| ^~~
omnomnom.cpp:17:26: error: expected ‘)’ before ‘}’ token
17 | ans+=sum