squares.cpp: In function 'void dfs(int)':
squares.cpp:12:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
12 | int nxt = node + (i << k - 1);
| ~~^~~
squares.cpp: In function 'std::vector<int> paint(int)':
squares.cpp:27:29: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
27 | while (de_bruijn.size() > n) de_bruijn.pop_back();
| ~~~~~~~~~~~~~~~~~^~~
squares.cpp:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for (int i = 0; i <= de_bruijn.size() - k; i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
squares.cpp: In function 'int find_location(int, std::vector<int>)':
squares.cpp:42:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (int i = 0; i <= de_bruijn.size() - k; i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
squares.cpp:48:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for (int i = 0; i < c.size(); i++) {
| ~~^~~~~~~~~~