Compile Error
foo.c: In function 'main':
foo.c:10:9: error: variable-sized object may not be initialized
   10 |         int arr[n][2]={0};
      |         ^~~
foo.c:23:29: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   23 |                         sum=abs(arr[0][0]-X)+abs(arr[0][1]-Y);
      |                             ^~~
foo.c:7:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    6 | #include<math.h>
  +++ |+#include <stdlib.h>
    7 | int main(){
  [Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
 - 类型
 - 递交
 - 题目
 - P1389 Problem 1A. 中秋月饼
 - 比赛
 - 悬赏令第一周
 - 语言
 - C
 - 递交时间
 - 2022-09-25 18:35:30
 - 评测时间
 - 2022-09-25 19:01:55
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes