fountain.cpp: In function 'int main()':
fountain.cpp:22:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int i = 0; i<c; ++i) for(int j = 1; j<v[i].size(); ++j) qs[v[i][j]] += qs[v[i][j-1]], idx[v[i][j]] = j;
| ~^~~~~~~~~~~~
fountain.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | int q; scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
fountain.cpp:11:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | for(int i = 0; i<n; ++i) scanf("%d %lld", d+i, qs+i);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:24:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | int st; ll w; scanf("%d %lld", &st, &w); c = C[--st];
| ~~~~~^~~~~~~~~~~~~~~~~~~~