Problem | archaeologist |
---|---|
User | bobbery |
Submission Time | 2025-03-18 21:20:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
archaeologist.cpp: In function ‘void dfs(int, int)’:
archaeologist.cpp:12:20: error: request for member ‘size’ in ‘adjlist.std::vector<int>::operator[](((std::vector<int>::size_type)node))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
12 | if (adjlist[node].size() == 1 and adjlist[node][0] != -1) {
| ^~~~
archaeologist.cpp:12:51: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
12 | if (adjlist[node].size() == 1 and adjlist[node][0] != -1) {
| ^
archaeologist.cpp:17:34: error: ‘begin’ was not declared in this scope
17 | for (int neighbour: adjlist[node]) {
| ^
archaeologist.cpp:17:34: note: suggested alternatives:
In file included from /usr/include/x86_64-l