/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:20:22: warning: format '%d' expects a matching 'int' argument [-Wformat=]
   20 |             printf("%d\n"),abs(a[1]-a[0]);
      |                     ~^
      |                      |
      |                      int
foo.cc:20:31: warning: right operand of comma operator has no effect [-Wunused-value]
   20 |             printf("%d\n"),abs(a[1]-a[0]);
      |                            ~~~^~~~~~~~~~~
foo.cc:59:17: warning: statement has no effect [-Wunused-value]
   59 |             for(i;i<N;i++){
      |                 ^
foo.cc:50:17: warning: unused variable 'sub' [-Wunused-variable]
   50 |             int sub=10,temp[10];
      |                 ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer Read 0, expect 8. 2ms 384.0 KiB
#3 Wrong Answer Read 7, expect 2. 2ms 384.0 KiB
#4 Wrong Answer Read 7, expect 5. 2ms 384.0 KiB
#5 Wrong Answer Read 9, expect 4. 3ms 384.0 KiB
#6 Wrong Answer Read 5, expect 1. 5ms 384.0 KiB
#7 Wrong Answer Read 6, expect 3. 7ms 384.0 KiB
#8 Wrong Answer Read 1, expect 4. 5ms 384.0 KiB
#9 Wrong Answer Read 1, expect 5. 6ms 384.0 KiB
#10 Wrong Answer Read 9, expect 5. 8ms 384.0 KiB

信息

递交者
类型
递交
题目
P1039 最小差距
语言
C++
递交时间
2022-05-27 00:05:16
评测时间
2022-05-27 00:05:16
评测机
分数
10
总耗时
49ms
峰值内存
384.0 KiB