Problem subgraphs
User MegaG
Submission Time 2026-01-23 16:25:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void BFS(long long int)’:
subgraphs.cpp:27:2: error: ‘queue’ was not declared in this scope
27 | queue<int> q;
| ^~~~~
subgraphs.cpp:6:1: note: ‘std::queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
5 | #include <cmath>
+++ |+#include <queue>
6 | #define int long long
subgraphs.cpp:6:13: error: expected primary-expression before ‘long’
6 | #define int long long
| ^~~~
subgraphs.cpp:27:8: note: in expansion of macro ‘int’
27 | queue<int> q;
| ^~~
subgraphs.cpp:28:2: error: ‘q’ was not declared in this scope
28 | q.push(u);
| ^