记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:8:11: warning: format '%lf' expects argument of type 'double *', but argument 2 has type 'float *' [-Wformat=]
  scanf("%lf %lf",&ax,&ay);
           ^
/in/foo.c:8:15: warning: format '%lf' expects argument of type 'double *', but argument 3 has type 'float *' [-Wformat=]
  scanf("%lf %lf",&ax,&ay);
               ^
/in/foo.c:13:11: warning: format '%lf' expects argument of type 'double *', but argument 2 has type 'float *' [-Wformat=]
  scanf("%lf %lf",&bx,&by);
           ^
/in/foo.c:13:15: warning: format '%lf' expects argument of type 'double *', but argument 3 has type 'float *' [-Wformat=]
  scanf("%lf %lf",&bx,&by);
               ^
/in/foo.c:15:12: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
  float dis=sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));
            ^~~~
/in/foo.c:15:12: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:15:12: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:23:8: warning: unused variable 'add' [-Wunused-variable]
  float add=(vector_mul+ax*bx+ay*by-ax*ax-ay*ay)/(bx-ay);
        ^~~
/in/foo.c:17:11: warning: unused variable 'cy' [-Wunused-variable]
  float cx,cy;
           ^~
/in/foo.c:17:8: warning: unused variable 'cx' [-Wunused-variable]
  float cx,cy;
        ^~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB

信息

递交者
类型
递交
题目
P1183 五角大楼
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C
递交时间
2020-12-09 14:19:23
评测时间
2020-12-09 14:19:24
评测机
分数
0
总耗时
1ms
峰值内存
216.0 KiB