/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:41:30: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
   41 |                 sscanf(s,"%lld\n",&a[i]);
      |                           ~~~^    ~~~~~
      |                              |    |
      |                              |    int*
      |                              long long int*
      |                           %d
foo.cc:31:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |             scanf("%s",s);
      |             ~~~~~^~~~~~~~
foo.cc:43:7: warning: array subscript 5 is outside array bounds of 'int [4]' [-Warray-bounds]
   43 |   sort(a+1,a+5);                                            //保证遍历所有情况
      |   ~~~~^~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
   26 | int a[4];
      |     ^
foo.cc:43:7: warning: array subscript 5 is outside array bounds of 'int [4]' [-Warray-bounds]
   43 |   sort(a+1,a+5);                                            //保证遍历所有情况
      |   ~~~~^~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
   26 | int a[4];
      |     ^
foo.cc:49:16: warning: array subscript 4 is above array bounds of 'int [4]' [-Warray-bounds]
   49 |           if (F(F(F(a[1],i,a[2]),j,a[3]),k,a[4])==24)       //((a?b)?c)?d
      |               ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:26:5: note: while referencing 'a'
   26 | int a[4];
      |     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Wrong Answer Read 1, expect 0. 3ms 384.0 KiB
#7 Wrong Answer Read 1, expect 0. 3ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Wrong Answer Read 1, expect 0. 3ms 384.0 KiB
#10 Wrong Answer Read 1, expect 0. 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1134 24点游戏
语言
C++
递交时间
2022-05-09 21:20:06
评测时间
2022-05-09 21:20:06
评测机
分数
60
总耗时
32ms
峰值内存
384.0 KiB