Problem reachability2
User gelastropod
Submission Time 2025-08-16 20:55:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reachability2.cpp: In function ‘bool dfs(long long int, long long int, bool)’:
reachability2.cpp:15:2: error: ‘bitset’ was not declared in this scope
15 | bitset<5000> bs;
| ^~~~~~
reachability2.cpp:6:1: note: ‘std::bitset’ is defined in header ‘<bitset>’; did you forget to ‘#include <bitset>’?
5 | #include <queue>
+++ |+#include <bitset>
6 | using namespace std;
reachability2.cpp:15:15: error: ‘bs’ was not declared in this scope; did you mean ‘abs’?
15 | bitset<5000> bs;
| ^~
| abs