0_0_32866013_774.cpp: In function 'double dis(const Point&, const Point&)':
0_0_32866013_774.cpp:29:70: error: 'sqrt' was not declared in this scope
return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
^
0_0_32866013_774.cpp: In function 'bool parallel(const Line&, const Line&)':
0_0_32866013_774.cpp:43:44: error: 'ZERO' was not declared in this scope
return ZERO((a.v - a.u).xMul(b.v - b.u));
^
0_0_32866013_774.cpp: In function 'void init()':
0_0_32866013_774.cpp:78:50: error: 'min' was not declared in this scope
if (l < r) to[i][0] = min(to[i][0], l);
^
0_0_32866013_774.cpp:79:44: error: 'min' was not declared in this scope
else to[i][1] = min(to[i][1], r);
^
0_0_32866013_774.cpp: In function 'double DP(int, int)':
0_0_32866013_774.cpp:93:47: error: 'min' was not declared in this scope
if(lx[k][i-1]) ll = min(ll, dd[k][i-1]);//如果k这头与i-1这条线段有交点
^
0_0_32866013_774.cpp:94:37: error: 'min' was not declared in this scope
else rr = min(rr, dd[k][i-1]);
^
0_0_32866013_774.cpp:95:44: error: 'min' was not declared in this scope
if (lx[k][j]) ll = min(ll, dd[k][j]);
^
0_0_32866013_774.cpp:96:35: error: 'min' was not declared in this scope
else rr = min(rr, dd[k][j]);
^
0_0_32866013_774.cpp:98:68: error: 'min' was not declared in this scope
ans = min(ans, DP(i, k) + DP(k+1, j) + ll + rr + line[k].w );
^
0_0_32866013_774.cpp: In function 'int main()':
0_0_32866013_774.cpp:104:39: error: 'scanf' was not declared in this scope
while(scanf("%d%lf%lf", &n, &a, &b)!=EOF){
^
0_0_32866013_774.cpp:104:42: error: 'EOF' was not declared in this scope
while(scanf("%d%lf%lf", &n, &a, &b)!=EOF){
^
0_0_32866013_774.cpp:111:35: error: 'memset' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
0_0_32866013_774.cpp:114:90: error: 'min' was not declared in this scope
ans = min(ans, DP(i, i + n - 1) + to[i - 1][0] + to[i - 1][1] + line[i - 1].w);
^
0_0_32866013_774.cpp:116:28: error: 'printf' was not declared in this scope
printf("%lf\n", ans);
^
|