/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void calc(int, int)':
foo.cc:9:10: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    9 |    if(ans>minn|now>6) return;
      |       ~~~^~~~~
foo.cc:24:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   24 |      if(a[5]==0 & ans<minn) minn=ans;
      |         ~~~~^~~
foo.cc: In function 'int main()':
foo.cc:44:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   44 |   scanf("%d",&n);
      |   ~~~~~^~~~~~~~~
foo.cc:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   54 |   scanf("%s",b);
      |   ~~~~~^~~~~~~~
foo.cc:47:11: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations]
   47 |     has[i]=has[i-1]<<1;
      |     ~~~~~~^~~~~~~~~~~~
foo.cc:46:16: note: within this loop
   46 |   for(int i=2;i<=10;i++)
      |               ~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 6,512d5 < -1 < -1 < -1 < -1 < 8ms 384.0 KiB
#2 Wrong Answer 6,512d5 < 0 < 0 < 0 < 0 < 0 < 5ms 384.0 KiB
#3 Wrong Answer 6,512d5 < 0 < 0 < 0 < 0 < 0 < 5ms 384.0 KiB
#4 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 9ms 384.0 KiB
#5 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 9ms 384.0 KiB
#6 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 11ms 512.0 KiB
#7 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 10ms 384.0 KiB
#8 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 9ms 384.0 KiB
#9 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 8ms 512.0 KiB
#10 Wrong Answer 501,512d500 < -1 < -1 < -1 < - 7ms 512.0 KiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2022-07-27 17:59:32
评测时间
2022-07-27 17:59:32
评测机
分数
0
总耗时
85ms
峰值内存
512.0 KiB