| Problem | subgraphs |
|---|---|
| User | chatdanai |
| Submission Time | 2026-05-05 10:17:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:8:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | int dfs(n){
| ^
| yn
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:24:10: error: request for member ‘push_back’ in ‘adj.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
24 | adj[x].push_back(y);
| ^~~~~~~~~
subgraphs.cpp:25:10: error: request for member ‘push_back’ in ‘adj.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)y))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
25 | adj[y].push_back(x);
| ^~~~~~~~~
subgraphs.cpp:30:9: error: ‘dfs’ cannot be used as