Problem findandprevent
User Pan
Submission Time 2024-03-04 23:56:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

findandprevent.cpp:33:12: error: array bound is not an integer constant before ‘]’ token
33 | ll pop[MAXN], dp[MAXN];
| ^
findandprevent.cpp:33:22: error: array bound is not an integer constant before ‘]’ token
33 | ll pop[MAXN], dp[MAXN];
| ^
findandprevent.cpp:34:20: error: array bound is not an integer constant before ‘]’ token
34 | vector<ll> adj[MAXN];
| ^
findandprevent.cpp: In function ‘void dfs(ll, ll)’:
findandprevent.cpp:37:12: error: ‘pop’ was not declared in this scope; did you mean ‘pow’?
37 | ll now = (pop[from])*(pop[from]-1)/2;
| ^~~
| pow
findandprevent.cpp:38:2: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
38 | dp[from] = pop[from];
| ^~
| p
findandprevent.cpp:39:13: error: ‘adj’ was not declared in this scope
39 | for (ll u: adj[from])
|