cigle.cpp: In function 'int main()':
cigle.cpp:36:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(int j=0, k=0, matches=0; j<prefsum.size(); j++){
| ~^~~~~~~~~~~~~~~
cigle.cpp:37:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while(k+1<suffsum.size() and suffsum[k]<prefsum[j])
| ~~~^~~~~~~~~~~~~~~
cigle.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
cigle.cpp:12:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d", &i);
| ~~~~~^~~~~~~~~~