Problem | drones |
---|---|
User | nianhe |
Submission Time | 2023-11-30 01:35:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
drones.cpp:30:5: error: expected unqualified-id before ‘for’
30 | for (int i=1; i<=n; i++){
| ^~~
drones.cpp:30:19: error: ‘i’ does not name a type
30 | for (int i=1; i<=n; i++){
| ^
drones.cpp:30:25: error: ‘i’ does not name a type
30 | for (int i=1; i<=n; i++){
| ^
drones.cpp:39:5: error: ‘visited’ does not name a type
39 | visited[n] = 1;
| ^~~~~~~
drones.cpp:41:5: error: ‘q’ does not name a type
41 | q.push(n);
| ^
drones.cpp:43:5: error: expected unqualified-id before ‘while’
43 | while (!q.empty()){
| ^~~~~
drones.cpp:55:5: error: expected unqualified-id before ‘for’
55 | for (int i=1; i<=n; i++){
| ^~~
drones.cpp:55:19: error: ‘i’ does not name a type
55 | for (int i=1; i<=n; i++){
| ^
drones.cpp:55:25: error: ‘i