Problem ancestor
User ilikeeggs
Submission Time 2026-01-02 11:54:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ancestor.cpp:14:1: error: stray ‘\342’ in program
14 | ​
| ^
ancestor.cpp:14:2: error: stray ‘\200’ in program
14 | ​
| ^
ancestor.cpp:14:3: error: stray ‘\213’ in program
14 | ​
| ^
ancestor.cpp:29:1: error: stray ‘\342’ in program
29 | ​
| ^
ancestor.cpp:29:2: error: stray ‘\200’ in program
29 | ​
| ^
ancestor.cpp:29:3: error: stray ‘\213’ in program
29 | ​
| ^
ancestor.cpp:5:1: error: ‘save’ does not name a type
5 | save
| ^~~~
ancestor.cpp: In function ‘void preprocess(std::vector<std::vector<long long int> >&, std::vector<std::vector<long long int> >&, long long int, long long int)’:
ancestor.cpp:20:5: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
20 | dfs(1, graph, ancestor, -1);
| ^~~
| ffs