F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_15691254_29866.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_15691254_29866.cpp: In function 'int dcmp(double)':
0_0_15691254_29866.cpp:6:17: error: 'eps' was not declared in this scope
     return x < -eps ? -1 : x > eps;
                 ^
0_0_15691254_29866.cpp: At global scope:
0_0_15691254_29866.cpp:11:22: error: 'vector' in namespace 'std' does not name a template type
 using Polygon = std::vector<Point>;
                      ^
0_0_15691254_29866.cpp: In member function 'double Point::length() const':
0_0_15691254_29866.cpp:30:34: error: 'sqrt' was not declared in this scope
         return sqrt(x * x + y * y);
                                  ^
0_0_15691254_29866.cpp: In member function 'void Point::show() const':
0_0_15691254_29866.cpp:34:38: error: 'printf' was not declared in this scope
         printf("-> %f %f %d\n",x,y,id);
                                      ^
0_0_15691254_29866.cpp: At global scope:
0_0_15691254_29866.cpp:56:1: error: 'Polygon' does not name a type
 Polygon input,poly,gon;
 ^
0_0_15691254_29866.cpp: In function 'double get_pos(const Point&, const Point&)':
0_0_15691254_29866.cpp:64:16: error: 'min' is not a member of 'std'
         return std::min(a.length(),b.length()) / direction.length();
                ^
0_0_15691254_29866.cpp: In member function 'bool Node::operator<(const Node&) const':
0_0_15691254_29866.cpp:77:31: error: 'poly' was not declared in this scope
         int f1 = dcmp(get_pos(poly[a],poly[b]) - get_pos(poly[rhs.a],poly[rhs.b]));
                               ^
0_0_15691254_29866.cpp: At global scope:
0_0_15691254_29866.cpp:90:6: error: 'set' in namespace 'std' does not name a template type
 std::set<Node> set;
      ^
0_0_15691254_29866.cpp:92:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector<std::pair<int,int>> op[N];
      ^
0_0_15691254_29866.cpp: In function 'double work()':
0_0_15691254_29866.cpp:98:24: error: 'max' is not a member of 'std'
     if (n == 2) return std::max(V[0],V[0] + V[1] - (input[0] - input[1]).length());
                        ^
0_0_15691254_29866.cpp:98:53: error: 'input' was not declared in this scope
     if (n == 2) return std::max(V[0],V[0] + V[1] - (input[0] - input[1]).length());
                                                     ^
0_0_15691254_29866.cpp:100:33: error: 'memset' was not declared in this scope
     memset(graph,0,sizeof(graph));
                                 ^
0_0_15691254_29866.cpp:106:9: error: 'poly' was not declared in this scope
         poly.resize(n);
         ^
0_0_15691254_29866.cpp:107:9: error: 'gon' was not declared in this scope
         gon.clear();
         ^
0_0_15691254_29866.cpp:109:23: error: 'input' was not declared in this scope
             poly[i] = input[i] - input[core];
                       ^
0_0_15691254_29866.cpp:114:9: error: 'sort' is not a member of 'std'
         std::sort(gon.begin(),gon.end(),polar_cmp);
         ^
0_0_15691254_29866.cpp:117:17: error: 'rotate' is not a member of 'std'
                 std::rotate(gon.begin(),gon.begin() + i,gon.end());
                 ^
0_0_15691254_29866.cpp:129:13: error: 'op' was not declared in this scope
             op[i].clear();
             ^
0_0_15691254_29866.cpp:136:21: error: 'op' was not declared in this scope
                     op[j].push_back({i,+1});
                     ^
0_0_15691254_29866.cpp:139:21: error: 'op' was not declared in this scope
                     op[i].push_back({j,+1});
                     ^
0_0_15691254_29866.cpp:143:17: error: 'op' was not declared in this scope
                 op[i].push_back({j,+1});
                 ^
0_0_15691254_29866.cpp:146:17: error: 'op' was not declared in this scope
                 op[j].push_back({i,+1});
                 ^
0_0_15691254_29866.cpp:150:9: error: 'set' was not declared in this scope
         set.clear();
         ^
0_0_15691254_29866.cpp:156:32: error: 'op' was not declared in this scope
                 for (auto &t : op[gon[k].id]) {
                                ^
0_0_15691254_29866.cpp:163:32: error: 'op' was not declared in this scope
                 for (auto &t : op[gon[k].id]) {
                                ^
0_0_15691254_29866.cpp:176:32: error: 'op' was not declared in this scope
                 for (auto &t : op[gon[k].id]) {
                                ^
0_0_15691254_29866.cpp:192:25: error: 'swap' is not a member of 'std'
                         std::swap(a,b);
                         ^
0_0_15691254_29866.cpp:207:32: error: 'op' was not declared in this scope
                 for (auto &t : op[gon[k].id]) {
                                ^
0_0_15691254_29866.cpp:227:5: error: 'vector' is not a member of 'std'
     std::vector<double> dp(n,-Inf);
     ^
0_0_15691254_29866.cpp:227:17: error: expected primary-expression before 'double'
     std::vector<double> dp(n,-Inf);
                 ^
0_0_15691254_29866.cpp:228:5: error: 'dp' was not declared in this scope
     dp[0] = V[0];
     ^
0_0_15691254_29866.cpp:232:25: error: 'max' is not a member of 'std'
                 dp[j] = std::max(dp[j],dp[i] + V[j] - (input[j] - input[i]).length());
                         ^
0_0_15691254_29866.cpp:232:56: error: 'input' was not declared in this scope
                 dp[j] = std::max(dp[j],dp[i] + V[j] - (input[j] - input[i]).length());
                                                        ^
0_0_15691254_29866.cpp:236:13: error: 'max_element' is not a member of 'std'
     return *std::max_element(dp.begin(),dp.end());
             ^
0_0_15691254_29866.cpp: In function 'int main()':
0_0_15691254_29866.cpp:241:20: error: 'scanf' was not declared in this scope
     scanf("%d",&cas);
                    ^
0_0_15691254_29866.cpp:244:9: error: 'input' was not declared in this scope
         input.resize(n);
         ^
0_0_15691254_29866.cpp:249:47: error: 'printf' was not declared in this scope
         printf("Case #%d: %.10f\n",++ca,work());
                                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 00:42:38, Gzip enabled