cigle.cpp: In function 'int qry(int, int)':
cigle.cpp:10:25: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
10 | for(int j=y; j>=0; j-=j+1&~j)
| ~^~
cigle.cpp: In function 'int main()':
cigle.cpp:45:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for(int j=0, k=0, matches=0; j<prefsum.size(); j++){
| ~^~~~~~~~~~~~~~~
cigle.cpp:46:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | while(k+1<suffsum.size() and suffsum[k]<prefsum[j])
| ~~~^~~~~~~~~~~~~~~
cigle.cpp:56:47: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
56 | for(int j=0; j<n; j++)for(int k=i; k<n; k+=k+1&~k)
| ~^~
cigle.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
cigle.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%d", &i);
| ~~~~~^~~~~~~~~~