relativnost.c: In function 'main':
relativnost.c:31:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf("%d%d",&n,&c);
| ^~~~~~~~~~~~~~~~~~~
relativnost.c:33:33: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | for (int i = 0; i < n; ++i) scanf("%d", a+i);
| ^~~~~~~~~~~~~~~~
relativnost.c:34:33: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | for (int i = 0; i < n; ++i) scanf("%d", b+i), base(i);
| ^~~~~~~~~~~~~~~~
relativnost.c:38:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &q);
| ^~~~~~~~~~~~~~~
relativnost.c:41:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d%d%d", &p, &aa, &bb), --p;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~