topovi.cpp:31:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
topovi.cpp: In function 'int main()':
topovi.cpp:32:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d%I64d",&n,&k,&p);
~~ ^
topovi.cpp:32:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
topovi.cpp:32:33: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
topovi.cpp:37:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d%I64d",&r,&c,&x);
~~ ^
topovi.cpp:37:38: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
topovi.cpp:37:38: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
topovi.cpp:42:50: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d%I64d%I64d",&r1,&c1,&r2,&c2);
~~~ ^
topovi.cpp:42:50: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
topovi.cpp:42:50: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
topovi.cpp:42:50: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
topovi.cpp:46:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n",ans);
^
topovi.cpp:32:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d%I64d",&n,&k,&p);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
topovi.cpp:37:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d%I64d",&r,&c,&x);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
topovi.cpp:42:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d%I64d%I64d",&r1,&c1,&r2,&c2);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~