| Problem | subgraphs |
|---|---|
| User | jovann |
| Submission Time | 2026-05-09 20:11:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
subgraphs.cpp:5:22: error: two or more data types in declaration of ‘dfs’
5 | void int dfs(int node) {
| ^
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:21:14: error: no match for ‘operator>>’ (operand types are ‘std::vector<int>’ and ‘int’)
21 | graph[a] >> b;
| ~~~~~~~~ ^~ ~
| | |
| | int
| std::vector<int>
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from subgraphs.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(std::byte, _IntegerType)’
140 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:140:5: note: template argument deduction/substitution failed:
subgraphs.cpp:21:12: not