foo.cc: In function 'int main()':
foo.cc:29:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
scanf("%I64d%I64d",&n,&k); ans = 0;
~~ ^
foo.cc:29:37: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'lint* {aka long long int*}' [-Wformat=]
foo.cc:31:39: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lint* {aka long long int*}' [-Wformat=]
scanf("%I64d",&num);
~~~~^
foo.cc:41:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'lint {aka long long int}' [-Wformat=]
printf("%I64d\n",ans % 1234567);
~~~~~~~~~~~~~^
foo.cc:29:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d",&n,&k); ans = 0;
~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:31:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&num);
~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务