nivelle.cpp: In function 'void solve()':
nivelle.cpp:42:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int j = 0; j < pos.size(); j++){
| ~~^~~~~~~~~~~~
nivelle.cpp:43:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare]
43 | if(a * (pos[j] - i) > b * (pos.size() - j)){
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
nivelle.cpp:48:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare]
48 | if(a * (n - i) > b * (pos.size() + 1)){
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
nivelle.cpp: In function 'int main()':
nivelle.cpp:60:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
60 | freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
nivelle.cpp:60:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
60 | freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~