Problem subgraphs
User YellowPurpleDragon
Submission Time 2024-05-20 21:37:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp:4:20: error: wrong number of template arguments (1, should be at least 2)
4 | map<deque<long long>> c;
| ^~
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from subgraphs.cpp:1:
/usr/include/c++/9/bits/stl_map.h:100:11: note: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
100 | class map
| ^~~
subgraphs.cpp: In function ‘void dfs(long long int)’:
subgraphs.cpp:9:19: error: invalid types ‘int[long long int]’ for array subscript
9 | for (auto j : c[i]) {if (!d[j]) {dfs(j);}}
| ^
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:17:6: error: invalid types ‘int[long long int]’ for array subscript
17 | c[e].push_back(f);
| ^
subgraphs.cpp:18:6: error: invalid types ‘int[lon