/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   19 |             scanf("%d",&a[i][j]);
      |                    ~^  ~~~~~~~~
      |                     |  |
      |                     |  long long int*
      |                     int*
      |                    %lld
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 |     scanf("%d %d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~~
foo.cc:19:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   19 |             scanf("%d",&a[i][j]);
      |             ~~~~~^~~~~~~~~~~~~~~
foo.cc:13:13: warning: iteration 79 invokes undefined behavior [-Waggressive-loop-optimizations]
   13 |         p[i]=p[i-1]*2;
      |         ~~~~^~~~~~~~~
foo.cc:12:18: note: within this loop
   12 |     for(int i=1;i<=80;i++){
      |                 ~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 3ms 384.0 KiB
#2 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 3ms 384.0 KiB
#3 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 3ms 640.0 KiB
#4 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 8ms 1.125 MiB
#5 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 4ms 1.125 MiB
#6 Wrong Answer Read 2, expect 2927709180747665.... 8ms 1.125 MiB
#7 Wrong Answer Read 2, expect 3970733714429939.... 9ms 1.5 MiB
#8 Wrong Answer Read 2, expect 4513427246035203.... 27ms 4.625 MiB
#9 Wrong Answer Read 2, expect 1671732093886273.... 28ms 5.625 MiB
#10 Wrong Answer 1,80d0 < 2 < 4 < 8 < 16 < 32 < 5ms 412.0 KiB

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2022-07-08 09:34:24
评测时间
2022-07-08 09:34:24
评测机
分数
0
总耗时
101ms
峰值内存
5.625 MiB