/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:29: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
   if(j>n) scanf("%llf",&b[i]);
                             ^
foo.cc:24:29: warning: use of 'll' length modifier with 'f' type character has either no effect or undefined behavior [-Wformat=]
   else scanf("%llf",&c[i][j]),a[i][j]=c[i][j];
                             ^
foo.cc:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:23:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   if(j>n) scanf("%llf",&b[i]);
           ~~~~~^~~~~~~~~~~~~~
foo.cc:24:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   else scanf("%llf",&c[i][j]),a[i][j]=c[i][j];
        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.cc:29:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   for (int i=1;i<=n;i++) scanf("0 ");
                          ~~~~~^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 -2147483648 ,应为 1 1ms 424.0 KiB
#2 Wrong Answer 读取到 -2147483648 ,应为 3 1ms 424.0 KiB
#3 Accepted 1ms 512.0 KiB
#4 Accepted 2ms 640.0 KiB
#5 Accepted 3ms 632.0 KiB
#6 Accepted 12ms 932.0 KiB
#7 Accepted 66ms 1.297 MiB
#8 Accepted 108ms 1.41 MiB
#9 Accepted 158ms 1.551 MiB
#10 Accepted 159ms 1.559 MiB

信息

递交者
类型
递交
题目
P1052 贾老二算算术
语言
C++
递交时间
2020-11-08 18:39:05
评测时间
2020-11-08 18:39:05
评测机
分数
80
总耗时
516ms
峰值内存
1.559 MiB