/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void f(int, int, int, int)':
/in/foo.cc:19:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
           ~~~~^~~~~~
/in/foo.cc:19:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:77: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:93: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:109: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                                                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:125: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                                                                                       ~~~~~~^~~~~~~~
/in/foo.cc:19:141: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
        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){
                                                                                                                                       ~~~~~~^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:44:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<n+1;i++)
     ^~~
/in/foo.cc:48:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  a[1][1]=2;
  ^
# 状态 耗时 内存占用
#1 Accepted 1ms 332.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Accepted 1ms 360.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 332.0 KiB
#6 Accepted 1ms 344.0 KiB
#7 Accepted 1ms 408.0 KiB
#8 Accepted 1ms 340.0 KiB
#9 Accepted 1ms 376.0 KiB
#10 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2023-12-31 10:41:40
评测时间
2023-12-31 10:41:40
评测机
分数
100
总耗时
16ms
峰值内存
408.0 KiB