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:27:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
27 | while(ans.size() > n) ans.pop_back();
| ~~~~~~~~~~~^~~
squares.cpp: In function 'std::vector<int> paint(int)':
squares.cpp:33:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
33 | for (auto i : ans) v.push_back(i); v.push_back(10);
| ^~~
squares.cpp:33:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
33 | for (auto i : ans) v.push_back(i); v.push_back(10);
| ^
squares.cpp: In function 'int find_location(int, std::vector<int>)':
squares.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type]
47 | }
| ^