squares.cpp:2: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
2 | #pragma GCC optimization ("O3")
|
squares.cpp:3: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
3 | #pragma GCC optimization ("unroll-loops")
|
squares.cpp: In function 'void Init(int)':
squares.cpp:44:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
44 | for (ll i = 1;i <= 10;i++) pow2[i] = pow2[i - 1]*2; f(0);
| ^~~
squares.cpp:44:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
44 | for (ll i = 1;i <= 10;i++) pow2[i] = pow2[i - 1]*2; f(0);
| ^
squares.cpp:47:22: warning: comparison of integer expressions of different signedness: 'std::deque<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | while(ans.size() > n) ans.pop_back();
| ~~~~~~~~~~~^~~
squares.cpp: In function 'std::vector<int> paint(int)':
squares.cpp:53:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
53 | for (auto i : ans) a.push_back(i); a.push_back(10);
| ^~~
squares.cpp:53:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
53 | for (auto i : ans) a.push_back(i); a.push_back(10);
| ^
squares.cpp: In function 'int find_location(int, std::vector<int>)':
squares.cpp:68:1: warning: control reaches end of non-void function [-Wreturn-type]
68 | }
| ^