foo.cc: In constructor 'BitSet::BitSet(unsigned int)':
foo.cc:12:9: error: 'memset' was not declared in this scope
12 | memset(arr, 0, sizeof(arr));
| ^~~~~~
foo.cc:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <cmath>
+++ |+#include <cstring>
4 | using namespace std;
foo.cc: In member function 'void BitSet::flip(int)':
foo.cc:65:23: warning: operation on '((BitSet*)this)->BitSet::arr[(31 - pos)]' may be undefined [-Wsequence-point]
65 | arr[31 - pos] = (arr[31 - pos] == 1 ? arr[31 - pos] = 0 : arr[31 - pos] = 1);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务