/ 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 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 5ms 640.0 KiB
#4 Accepted 7ms 1.125 MiB
#5 Accepted 7ms 1.125 MiB
#6 Wrong Answer Read 8625244546177853360, expect 2927709180747665.... 8ms 1.25 MiB
#7 Wrong Answer Read -375843538023184478, expect 3970733714429939.... 5ms 1.5 MiB
#8 Wrong Answer Read -2241027926927729224, expect 4513427246035203.... 11ms 4.625 MiB
#9 Wrong Answer Read -1729377413380824448, expect 1671732093886273.... 12ms 5.5 MiB
#10 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2022-07-08 09:35:11
评测时间
2022-07-08 09:35:11
评测机
分数
60
总耗时
66ms
峰值内存
5.5 MiB