Problem | omnomnom |
---|---|
User | Tyx2019 |
Submission Time | 2023-04-14 20:41:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
omnomnom.cpp:23:21: error: missing terminating ' character
23 | return dp[take][x]'
| ^
omnomnom.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<int> adj[100005];
| ^~~~~~
omnomnom.cpp:5:1: error: ‘vector’ does not name a type
5 | vector<int> adj2[100005];
| ^~~~~~
omnomnom.cpp: In function ‘void dfs(long long int)’:
omnomnom.cpp:8:14: error: ‘adj’ was not declared in this scope
8 | for(auto i: adj[x]){
| ^~~
omnomnom.cpp:12:4: error: ‘adj2’ was not declared in this scope
12 | adj2[x].push_back(i);
| ^~~~
omnomnom.cpp: In function ‘long long int getdp(long long int, long long int)’:
omnomnom.cpp:22:14: error: ‘adj2’ was not declared in this scope
22 | for(auto i:adj2[x]) dp[i]+=getdp(i,!take);
| ^~~~
omnomnom.cpp:23:21: error: expected ‘;’ before ‘}’ token
23 | return dp[take][x]'