/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:9:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
    9 |     for(i=1;i<=n;i++) scanf("%d",&a[0][i]),a[0][i]--;
      |                              ~^  ~~~~~~~~
      |                               |  |
      |                               |  long long int*
      |                               int*
      |                              %lld
foo.cc:31:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   31 |         printf("%d%c",ans[i]+1,i==(n<<1)?'\n':' ');
      |                 ~^    ~~~~~~~~
      |                  |          |
      |                  int        long long int
      |                 %lld
foo.cc:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |     scanf("%lld%lld",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:9:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |     for(i=1;i<=n;i++) scanf("%d",&a[0][i]),a[0][i]--;
      |                       ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 99ms 2.617 MiB
#5 Accepted 100ms 3.117 MiB
#6 Accepted 86ms 2.297 MiB
#7 Accepted 91ms 3.117 MiB
#8 Accepted 87ms 2.242 MiB
#9 Accepted 87ms 2.992 MiB

信息

递交者
类型
递交
题目
P1554 硬币游戏
语言
C++
递交时间
2022-02-16 18:56:40
评测时间
2022-02-16 18:56:40
评测机
分数
90
总耗时
563ms
峰值内存
3.117 MiB