lot.cpp: In function 'int main()':
lot.cpp:51:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int j = 1; j < S.size(); ++j) CNT[i][j] += CNT[i][j - 1];
| ~~^~~~~~~~~~
lot.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d%d", &n, &l);
| ~~~~~^~~~~~~~~~~~~~~~
lot.cpp:37:34: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | for(int i = 0; i < n; ++i) scanf("%d", A + i);
| ~~~~~^~~~~~~~~~~~~
lot.cpp:38:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~
lot.cpp:40:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", B + i);
| ~~~~~^~~~~~~~~~~~~