/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:16:19: warning: statement has no effect [-Wunused-value]
   16 |             num[t]==1;
      |             ~~~~~~^~~
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 Wrong Answer Read 100, expect 28. 2ms 384.0 KiB
#2 Wrong Answer Read -2029084912, expect 4. 2ms 384.0 KiB
#3 Wrong Answer Read 725353392, expect 2. 2ms 384.0 KiB
#4 Wrong Answer Read 100, expect 29. 4ms 384.0 KiB
#5 Wrong Answer Read 1000, expect 147. 3ms 384.0 KiB
#6 Wrong Answer Read 0, expect 369. 3ms 384.0 KiB
#7 Wrong Answer Read 10000, expect 247. 7ms 384.0 KiB
#8 Wrong Answer Read 1000, expect 137. 5ms 384.0 KiB
#9 Wrong Answer Read 100, expect 17. 7ms 384.0 KiB
#10 Wrong Answer Read 0, expect 109. 11ms 384.0 KiB

信息

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