Wrong Answer
foo.cc: In function ‘void dfs(int, int)’: foo.cc:15:44: warning: the address of ‘bush’ will never be NULL [-Waddress] 15 | if(x<1&&x>n&&y<1&&y>m||bush!=0) | ~~~~^~~ foo.cc:3:15: note: ‘bush’ declared here 3 | int ans,n,m,t,bush[15][15],dir[8][2]={{-2,1},{-2,-1},{2-1},{2,1},{1,-2},{1,2},{-1,-2},{-1,-2}}; | ^~~~ foo.cc:15:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 15 | if(x<1&&x>n&&y<1&&y>m||bush!=0) | ~~~~~~~~~~~~~^~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1513 马走日
- 语言
- C++
- 递交时间
- 2024-05-03 16:50:09
- 评测时间
- 2024-05-03 16:50:09
- 评测机
- 分数
- 30
- 总耗时
- 27ms
- 峰值内存
- 772.0 KiB