| Problem | archaeologist |
|---|---|
| User | Aviansh1234 |
| Submission Time | 2025-02-07 21:18:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:30:11: error: invalid initialization of reference of type ‘std::vector<int> (&)[]’ from expression of type ‘std::vector<int> [n]’
30 | dfs(0,g,-1,leaves);
| ^
archaeologist.cpp:8:31: note: in passing argument 2 of ‘void dfs(int, std::vector<int> (&)[], int, int*)’
8 | void dfs(int st, vector<int>(&g)[], int p, int leaves[]){
| ~~~~~~~~~~~~~^~~~