topovi.cpp: In function 'int main()':
topovi.cpp:31: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 );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
topovi.cpp:34:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int r, c, x; scanf( "%d%d%d", &r, &c, &x );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
topovi.cpp:40:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int r1, c1, r2, c2; scanf( "%d%d%d%d", &r1, &c1, &r2, &c2 );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~