Problem | subgraphs |
---|---|
User | emyz |
Submission Time | 2024-04-13 19:35:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:21:18: error: expected ‘;’ before ‘v’
21 | process.push(i)
| ^
| ;
22 | v[i]=true;
| ~
subgraphs.cpp:26:12: error: invalid use of non-static member function ‘void std::queue<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’
26 | process.pop;
| ~~~~~~~~^~~
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from subgraphs.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:292:7: note: declared here
292 | pop()
| ^~~
subgraphs.cpp:29:9: error: ‘vis’ was not declared in this scope
29 | if (vis[j]) continue;
| ^~~
subgraphs.cpp:30:5: error: ‘vis’ was not declared in this scope
30 | vis[j]=true;