Problem | ancestor |
---|---|
User | PlayVoltz |
Submission Time | 2024-02-21 17:19:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ancestor.cpp:13:28: error: ‘void twok(long long int, long long int)’ redeclared as different kind of entity
13 | void twok(int node, int par){
| ^
ancestor.cpp:11:29: note: previous declaration ‘std::vector<std::vector<long long int> > twok’
11 | vector<vector<int> > graph, twok;
| ^~~~
ancestor.cpp: In function ‘void twok(long long int, long long int)’:
ancestor.cpp:16:41: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
16 | for (auto num:graph[node])if (num!=par)dfs(num, node);
| ^~~
| ffs
ancestor.cpp: In function ‘int32_t main()’:
ancestor.cpp:34:11: error: no match for call to ‘(std::vector<std::vector<long long int> >) (int, int)’
34 | twok(0, 0);
| ^
ancestor.cpp:35:9: error: ‘q’ was not declared