记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:16:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(a[i]=a[i+1])
       ~~~~^~~~~~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a[i]);
  ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9, expect 8. 1ms 432.0 KiB
#2 Wrong Answer Read 19, expect 11. 1ms 396.0 KiB
#3 Wrong Answer Read 29, expect 14. 1ms 404.0 KiB
#4 Wrong Answer Read 39, expect 21. 1ms 432.0 KiB
#5 Wrong Answer Read 49, expect 26. 2ms 404.0 KiB
#6 Wrong Answer Read 59, expect 32. 2ms 384.0 KiB
#7 Wrong Answer Read 69, expect 39. 1ms 404.0 KiB
#8 Wrong Answer Read 79, expect 43. 2ms 404.0 KiB
#9 Wrong Answer Read 89, expect 48. 2ms 404.0 KiB
#10 Wrong Answer Read 7, expect 6. 2ms 376.0 KiB

信息

递交者
类型
递交
题目
P1000 明明的随机数
语言
C++
递交时间
2021-11-12 20:22:51
评测时间
2021-11-12 20:22:51
评测机
分数
0
总耗时
20ms
峰值内存
432.0 KiB