foo.cc: In function 'int main()':
foo.cc:6:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d",&x);
~~^
foo.cc:12:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d",ans);
^
foo.cc:4:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
~~~~~^~~~~~~~~~~~~~
foo.cc:6:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
~~~~~^~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-14T11:04:25.781Z","handle":"2020-07-14T11:04:25.781Z","cache_start":"2020-07-14T11:04:25.794Z","read_cases":"2020-07-14T11:04:28.468Z","judge":"2020-07-14T11:04:28.468Z","done":"2020-07-14T11:04:29.324Z"}