记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:15:28: error: 'M_PI' undeclared (first use in this function)
   15 |         float theta = 72 * M_PI / 180.0;
      |                            ^~~~
/in/foo.c:15:28: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:17:18: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   17 |         float m=(abs(a[1]-b[1]))/l,n=(abs(a[0]-b[0]))/l;
      |                  ^~~
/in/foo.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | int square(int x)

信息

递交者
类型
递交
题目
P1183 五角大楼
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C
递交时间
2025-09-27 20:46:58
评测时间
2025-10-03 02:17:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes