Problem dragonfly
User Hengweezy
Submission Time 2025-02-01 16:17:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dragonfly.cpp: In function ‘void buildParent(int, int, const std::vector<std::vector<int> >&, std::vector<int>)’:
dragonfly.cpp:10:20: error: cannot convert ‘std::vector<int>’ to ‘int’
10 | buildParent(p, parent, path);
| ^~~~~~
| |
| std::vector<int>
dragonfly.cpp:6:32: note: initializing argument 2 of ‘void buildParent(int, int, const std::vector<std::vector<int> >&, std::vector<int>)’
6 | void buildParent(int self, int parent_node, const vector<vector<int>>& path, const vector<int> pond) {
| ~~~~^~~~~~~~~~~
dragonfly.cpp:18:38: error: too few arguments to function ‘void buildParent(int, int, const std::vector<std::vector<int> >&, std::vector<int>)’
18 | buildParent(p, self, path);
| ^
drag