记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:8: warning: missing terminating " character
  scanf("%d %d\n),&ax,&ay);
        ^
/in/foo.c:7:8: error: missing terminating " character
  scanf("%d %d\n),&ax,&ay);
        ^~~~~~~~~~~~~~~~~~~
/in/foo.c:8:8: warning: missing terminating " character
  scanf("%d %d\n),&bx,&by);
        ^
/in/foo.c:8:8: error: missing terminating " character
  scanf("%d %d\n),&bx,&by);
        ^~~~~~~~~~~~~~~~~~~
/in/foo.c:9:41: error: expected ')' before ';' token
  d=sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));
                                         ^
/in/foo.c:9:2: error: incompatible type for argument 1 of 'scanf'
  d=sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));
  ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdio.h:27,
                 from /in/foo.c:1:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'double'
 extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
            ^
/in/foo.c:12:1: error: expected ')' before '}' token
 }
 ^
/in/foo.c:12:1: error: expected ';' before '}' token
/in/foo.c:6:12: warning: unused variable 'cy' [-Wunused-variable]
  double cx,cy,d;
            ^~
/in/foo.c:6:9: warning: unused variable 'cx' [-Wunused-variable]
  double cx,cy,d;
         ^~

信息

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