relativnost.cpp: In function 'int main()':
relativnost.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&k,&p);
~~~~~^~~~~~~~~~~~~~~~~~~~~
relativnost.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&i,&j,&s);
~~~~~^~~~~~~~~~~~~~~~~~~~~
relativnost.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&i,&j);
~~~~~^~~~~~~~~~~~~~~
relativnost.cpp:39:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&i,&j);
~~~~~^~~~~~~~~~~~~~~