jobs.cpp: In function 'int main()':
jobs.cpp:7:20: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | int n, d, m; scanf("%d %d %d", &n, &d, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
jobs.cpp:8:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | for(int i = 0; i<m; ++i) scanf("%d", a+i), v[--a[i]].push_back(i);
| ~~~~~^~~~~~~~~~~
jobs.cpp:21:30: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
21 | for(int i = 0; i<m; ++i) b[i/ans].push_back(a[i]);
| ~^~~~