Discharging.cpp: In member function 'll CHT::query(ll)':
Discharging.cpp:28:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Line>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if(pos>=S.size()) pos=S.size()-1;
| ~~~^~~~~~~~~~
Discharging.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Line>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | else while(pos+1<S.size() && cross(S[pos], S[pos+1])<=x) pos++;
| ~~~~~^~~~~~~~~
Discharging.cpp: In function 'int main()':
Discharging.cpp:50:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int i=1; i<S.size(); i++)
| ~^~~~~~~~~
Discharging.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
Discharging.cpp:37:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | for(int i=1; i<=N; i++) scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~