Problem dragonfly
User Hengweezy
Submission Time 2025-02-01 14:20:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dragonfly.cpp: In function ‘void createPath(int, int, const std::vector<std::vector<int> >&)’:
dragonfly.cpp:17:24: error: invalid initialization of reference of type ‘const std::vector<std::vector<int> >&’ from expression of type ‘const std::vector<std::vector<int> >*’
17 | createPath(p, self, &path);
| ^~~~~
dragonfly.cpp:6:66: note: in passing argument 3 of ‘void createPath(int, int, const std::vector<std::vector<int> >&)’
6 | void createPath(int self, int parent, const vector<vector<int>>& path){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~