Wrong Answer
foo.cc: In function ‘int judge(int (*)[500], int, int)’:
foo.cc:47:95: warning: array subscript -1 is below array bounds of ‘int [500]’ [-Warray-bounds=]
   47 |                 if(a[i][j]>a[i-1][j]&&a[i][j]>a[i][j+1]&&a[i][j]>a[i+1][j]&&a[i][j]>a[i-1][j-1]&&a[i][j]>a[i-1][j+1])
      |                                                                                     ~~~~~~~~~~^
  信息
- 递交者
 - 类型
 - 递交
 - 题目
 - 4-4 有多少个山峰
 - 比赛
 - 2025年春 南师大《程序设计与竞赛》作业赛第五场
 - 语言
 - C++
 - 递交时间
 - 2025-04-12 13:40:57
 - 评测时间
 - 2025-04-12 13:40:57
 - 评测机
 
- 分数
 - 40
 - 总耗时
 - 24ms
 - 峰值内存
 - 1.48 MiB