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