Problem network
User Sans12345
Submission Time 2023-03-12 17:28:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

network.cpp:1:1: error: stray ‘\’ in program
1 | \#include <bits/stdc++.h>
| ^
network.cpp:1:2: error: stray ‘#’ in program
1 | \#include <bits/stdc++.h>
| ^
network.cpp:1:3: error: ‘include’ does not name a type
1 | \#include <bits/stdc++.h>
| ^~~~~~~
network.cpp:7:1: error: ‘vector’ does not name a type
7 | vector<long long int> adj[200002];
| ^~~~~~
network.cpp: In function ‘bool BFS(int, int)’:
network.cpp:11:5: error: ‘memset’ was not declared in this scope
11 | memset(d,-1,sizeof(d));
| ^~~~~~
network.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 | \#include <bits/stdc++.h>
network.cpp:13:5: error: ‘queue’ was not declared in this scope
13 | queue<int> q({s});
| ^~~~~
network.cpp:13:11: error: expected