relativnost.cpp: In function 'int main()':
relativnost.cpp:51:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &c);
~~~~~^~~~~~~~~~~~~~~~
relativnost.cpp:55:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &niza[i]);
~~~~~^~~~~~~~~~~~~~~~
relativnost.cpp:60:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nizb[i]);
~~~~~^~~~~~~~~~~~~~~~
relativnost.cpp:74:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
~~~~~^~~~~~~~~~
relativnost.cpp:78:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &p, &a, &b);
~~~~~^~~~~~~~~~~~~~~~~~~~~~