Problem omnomnom
User asbx
Submission Time 2023-12-16 09:52:40
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:13: error: ‘adjList’ was not declared in this scope
17 | for(int k:adjList[node]){
| ^~~~~~~
omnomnom.cpp:18:15: error: ‘dp’ cannot be used as a function
18 | ans+=dp(k,0);
| ^
omnomnom.cpp:22:13: error: ‘adjList’ was not declared in this scope
22 | for(int k:adjList[node]){
| ^~~~~~~
omnomnom.cpp:23:19: error: ‘dp’ cannot be used as a function
23 |