squares.cpp: In function 'int find_location(int, std::vector<int>)':
squares.cpp:23:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | while(it<c.size()&&c[it]!=-1)
| ~~^~~~~~~~~
squares.cpp:23:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
23 | while(it<c.size()&&c[it]!=-1)
| ^~~~~
squares.cpp:25:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
25 | return n-it;
| ^~~~~~