/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void f(int, int, int, int)':
foo.cc:19:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |           ~~~~^~~~~~
foo.cc:19:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                       ~~~~~~^~~~~~~~
foo.cc:19:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                       ~~~~~~^~~~~~~~
foo.cc:19:77: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                                       ~~~~~~^~~~~~~~
foo.cc:19:93: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                                                       ~~~~~~^~~~~~~~
foo.cc:19:109: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                                                                       ~~~~~~^~~~~~~~
foo.cc:19:125: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                                                                                       ~~~~~~^~~~~~~~
foo.cc:19:141: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |        if(x==c&&y==b||x==c-1&&y==b-2||x==c+1&&y==b-2||x==c-2&&y==b-1||x==c+2&&y==b-1||x==c-2&&y==b+1||x==c+2&&y==b+1||x==c-1&&y==b+2||x==c+1&&y==b+2){
      |                                                                                                                                       ~~~~~~^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:43:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   43 |     for(int i=0;i<n+1;i++)
      |     ^~~
foo.cc:47:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   47 |  a[1][1]=2;
      |  ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Wrong Answer Read 27, expect 0. 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2022-01-24 16:08:42
评测时间
2022-01-24 16:08:42
评测机
分数
90
总耗时
23ms
峰值内存
384.0 KiB