Problem milkweed
User anigoenk14
Submission Time 2023-11-10 14:28:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp:3:1: error: ‘visited’ does not name a type
3 | visited[x] = 1;
| ^~~~~~~
milkweed.cpp:4:1: error: ‘dist’ does not name a type
4 | dist[s] = 0;
| ^~~~
milkweed.cpp:5:1: error: expected unqualified-id before ‘for’
5 | for (q.push(s); !q.empty(); ) {
| ^~~
milkweed.cpp:5:17: error: expected unqualified-id before ‘!’ token
5 | for (q.push(s); !q.empty(); ) {
| ^
milkweed.cpp:5:29: error: expected unqualified-id before ‘)’ token
5 | for (q.push(s); !q.empty(); ) {
| ^