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