错误解释
CompileError!
编译信息
main.cpp:2:15: error: \xe2\x80\x98TreeNode\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~~~~~\nmain.cpp:2:25: error: \xe2\x80\x98root\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~\nmain.cpp:2:31: error: \xe2\x80\x98TreeNode\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~~~~~\nmain.cpp:2:41: error: \xe2\x80\x98target\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~~~\nmain.cpp:2:49: error: \xe2\x80\x98vector\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~~~\nmain.cpp:2:56: error: \xe2\x80\x98TreeNode\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~~~~~\nmain.cpp:2:65: error: expected primary-expression before \xe2\x80\x98>\xe2\x80\x99 token\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^\nmain.cpp:2:68: error: \xe2\x80\x98path\xe2\x80\x99 was not declared in this scope\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^~~~\nmain.cpp:2:72: error: expression list treated as compound expression in initializer [-fpermissive]\n 2 | bool findPath(TreeNode* root, TreeNode* target, vector<TreeNode*>& path) {\n | ^\nmain.cpp:13:1: error: \xe2\x80\x98TreeNode\xe2\x80\x99 does not name a type\n 13 | TreeNode* lowestCommonAncestor(TreeNode* root, TreeNode* p, TreeNode* q) {\n | ^~~~~~~~\n