/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
/in/foo.cc:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:33: error: 'scanf' was not declared in this scope
 scanf("%ld%ld%ld%ld",&a,&b,&c,&d);
                                 ^
/in/foo.cc:15:41: error: 'sqrt' was not declared in this scope
 printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
                                         ^
/in/foo.cc:5:58: note: in definition of macro 'DIST'
 #define DIST(x1,y1,x2,y2) sqrt(((x1)-(x2))*((x1)-(x2))+((y1)-(y2))*((y1)-(y2)))
                                                          ^~
/in/foo.cc:5:79: error: 'sqrt' was not declared in this scope
 #define DIST(x1,y1,x2,y2) sqrt(((x1)-(x2))*((x1)-(x2))+((y1)-(y2))*((y1)-(y2)))
                                                                               ^
/in/foo.cc:15:18: note: in expansion of macro 'DIST'
 printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
                  ^~~~
/in/foo.cc:5:79: error: redeclaration of '<typeprefixerror>sqrt'
 #define DIST(x1,y1,x2,y2) sqrt(((x1)-(x2))*((x1)-(x2))+((y1)-(y2))*((y1)-(y2)))
                                                                               ^
/in/foo.cc:15:18: note: in expansion of macro 'DIST'
 printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
                  ^~~~
/in/foo.cc:15:41: note: previous declaration '<typeprefixerror>sqrt'
 printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
                                         ^
/in/foo.cc:5:58: note: in definition of macro 'DIST'
 #define DIST(x1,y1,x2,y2) sqrt(((x1)-(x2))*((x1)-(x2))+((y1)-(y2))*((y1)-(y2)))
                                                          ^~
/in/foo.cc:15:65: error: 'printf' was not declared in this scope
 printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
                                                                 ^

信息

递交者
类型
自测
题目
P1433 火炬手之梦
语言
C++
递交时间
2019-08-04 19:02:52
评测时间
2019-08-04 19:02:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes