relativnost.cpp: In function 'int main()':
relativnost.cpp:56:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
56 | scanf("%d%d",&n,&c);
| ~~~~~^~~~~~~~~~~~~~
relativnost.cpp:57:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
57 | for(int i=0;i<n;i++)scanf("%d",a+i);//cin>>a[i];
| ~~~~~^~~~~~~~~~
relativnost.cpp:58:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
58 | for(int i=0;i<n;i++)scanf("%d",b+i);//cin>>b[i];
| ~~~~~^~~~~~~~~~
relativnost.cpp:63:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
63 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
relativnost.cpp:67:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
67 | scanf("%d",&p);
| ~~~~~^~~~~~~~~
relativnost.cpp:70:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
70 | scanf("%d%d",a+p,b+p);
| ~~~~~^~~~~~~~~~~~~~~~