bridges.c: In function 'main':
bridges.c:30:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d%d", &n, &m);
| ^~~~~~~~~~~~~~~~~~~~~
bridges.c:32:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("%d%d%d", &ii[h], &jj[h], &ww[h]), ii[h]--, jj[h]--;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bridges.c:33:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d", &q);
| ^~~~~~~~~~~~~~~
bridges.c:37:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &t);
| ^~~~~~~~~~~~~~~
bridges.c:39:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
39 | scanf("%d%d", &h, &w), h--;
| ^~~~~~~~~~~~~~~~~~~~~
bridges.c:42:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
42 | scanf("%d%d", &i, &w), i--;
| ^~~~~~~~~~~~~~~~~~~~~