Problem | milkweed |
---|---|
User | anigoenk14 |
Submission Time | 2023-11-10 14:11:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
milkweed.cpp:1:1: error: ‘queue’ does not name a type
1 | queue<int> q;
| ^~~~~
milkweed.cpp:2:1: error: ‘visited’ does not name a type
2 | visited[s] = 1;
| ^~~~~~~
milkweed.cpp:3:1: error: ‘q’ does not name a type
3 | q.push(s);
| ^
milkweed.cpp:4:1: error: expected unqualified-id before ‘while’
4 | while (!q.empty())
| ^~~~~
milkweed.cpp:5:21: error: ‘q’ does not name a type
5 | int v = q.front(); q.pop();
| ^
milkweed.cpp:6:2: error: expected unqualified-id before ‘for’
6 | for (auto i: adjList[v]) {
| ^~~
milkweed.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^