/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:8: error: 'sqrt' was not declared in this scope
   13 |  min = sqrt((x - a) * (x - a) + (y - b) * (y - b));
      |        ^~~~
/in/foo.cc:15:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
   15 |  while (scanf("%d%d",&x,&y)!=EOF)
      |                ~^    ~~
      |                 |    |
      |                 int* double*
      |                %le
/in/foo.cc:15:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'double*' [-Wformat=]
   15 |  while (scanf("%d%d",&x,&y)!=EOF)
      |                  ~^     ~~
      |                   |     |
      |                   int*  double*
      |                  %le

信息

递交者
类型
递交
题目
P1049 最短距离的点
语言
C++
递交时间
2024-12-22 20:28:23
评测时间
2024-12-22 20:28:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes