| Problem | archaeologist |
|---|---|
| User | coinunderscore |
| Submission Time | 2026-04-20 15:06:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
archaeologist.cpp:1:24: error: ‘vector’ has not been declared
1 | void dfs(int u, int p, vector<int> &dp, vector<vector<int>> &adj){
| ^~~~~~
archaeologist.cpp:1:30: error: expected ‘,’ or ‘...’ before ‘<’ token
1 | void dfs(int u, int p, vector<int> &dp, vector<vector<int>> &adj){
| ^
archaeologist.cpp: In function ‘void dfs(int, int, int)’:
archaeologist.cpp:2:19: error: ‘adj’ was not declared in this scope
2 | if (u != 0 && adj[u].size() == 1){
| ^~~
archaeologist.cpp:3:9: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
3 | dp[u] = 1;
| ^~
| p
archaeologist.cpp:6:17: error: ‘adj’ was not declared in this scope
6 | for (int v: adj[u]){
| ^~~
archaeologist.cpp:8:19: error: ‘dp’ was not declared in this scope; di