Problem dragonfly
User Hengweezy
Submission Time 2025-02-01 14:18:08
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:9:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
9 | visit[self].push_back(item);
| ^
dragonfly.cpp:13:12: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
13 | visit[self].push_back(self);
| ^
dragonfly.cpp: In function ‘int main()’:
dragonfly.cpp:34:8: error: overloaded function with no contextual type information
34 | visit.resize(n);
| ^~~~~~