记录详情

Wrong Answer

/in/foo.cc: In function 'int search(int)':
/in/foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j=1;j<=8;j++);
  ^~~
/in/foo.cc:15:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    if((!b[j])&&(!c[i+j])&&(!d[i-j+7]))
    ^~
/in/foo.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int print()':
/in/foo.cc:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int search(int)':
/in/foo.cc:15:12: warning: array subscript is above array bounds [-Warray-bounds]
    if((!b[j])&&(!c[i+j])&&(!d[i-j+7]))
         ~~~^
/in/foo.cc:18:8: warning: array subscript is above array bounds [-Warray-bounds]
     b[j]=1;
     ~~~^
/in/foo.cc:23:8: warning: array subscript is above array bounds [-Warray-bounds]
     b[j]=0;
     ~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB
#2 Wrong Answer 1ms 216.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 1ms 208.0 KiB

信息

递交者
类型
递交
题目
八皇后问题
题目数据
下载
语言
C++
递交时间
2018-12-28 21:15:01
评测时间
2018-12-28 21:15:01
评测机
分数
0
总耗时
8ms
峰值内存
216.0 KiB