relativnost.cpp:41:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
relativnost.cpp: In function 'int main()':
relativnost.cpp:42:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d",&n,&m);
~~ ^
relativnost.cpp:42:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
relativnost.cpp:44:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&a[k]);
~~~~~^
relativnost.cpp:48:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&b[k]);
~~~~~^
relativnost.cpp:55:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d%I64d",&x,&na,&nb);
~~ ^
relativnost.cpp:55:38: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
relativnost.cpp:55:38: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
relativnost.cpp:60:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n",ans);
^
relativnost.cpp:42:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d",&n,&m);
~~~~~^~~~~~~~~~~~~~~~~~~~
relativnost.cpp:44:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&a[k]);
~~~~~^~~~~~~~~~~~~~~
relativnost.cpp:48:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&b[k]);
~~~~~^~~~~~~~~~~~~~~
relativnost.cpp:55:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d%I64d",&x,&na,&nb);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~