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_21011457_5732.cpp: In function 'bool ok(int, int, int)':
0_0_21011457_5732.cpp:14:8: error: request for member 'y' in 'B', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
        ^
0_0_21011457_5732.cpp:14:12: error: request for member 'y' in 'A', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
            ^
0_0_21011457_5732.cpp:14:18: error: request for member 'x' in 'C', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                  ^
0_0_21011457_5732.cpp:14:22: error: request for member 'x' in 'A', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                      ^
0_0_21011457_5732.cpp:14:29: error: request for member 'y' in 'C', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                             ^
0_0_21011457_5732.cpp:14:33: error: request for member 'y' in 'A', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                                 ^
0_0_21011457_5732.cpp:14:39: error: request for member 'x' in 'B', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                                       ^
0_0_21011457_5732.cpp:14:43: error: request for member 'x' in 'A', which is of non-class type 'int'
  if((B.y-A.y)*(C.x-A.x)==(C.y-A.y)*(B.x-A.x))return 1;
                                           ^
0_0_21011457_5732.cpp: In function 'P jiao(int, int, int, int)':
0_0_21011457_5732.cpp:19:38: error: 'getcha' was not declared in this scope
  double V1=getcha(p[B]-p[A],p[C]-p[A]),V2=getchar(p[B]-p[A],p[D]-p[A]);
                                      ^
0_0_21011457_5732.cpp:20:28: error: 'V2' was not declared in this scope
  P o=p[D]-p[C];o.x*=V1/(V1+V2);o.y*=V1/(V1+V2);
                            ^
0_0_21011457_5732.cpp: In function 'bool ko(int, int, int, int)':
0_0_21011457_5732.cpp:25:12: error: too few arguments to function 'double dis(P, P)'
  if(dis(o.x)<dis(
            ^
0_0_21011457_5732.cpp:8:8: note: declared here
 double dis(P a,P b){return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));}
        ^
0_0_21011457_5732.cpp:26:1: error: expected primary-expression before '}' token
 }
 ^
0_0_21011457_5732.cpp:26:1: error: expected ')' before '}' token
0_0_21011457_5732.cpp:26:1: error: expected primary-expression before '}' token
0_0_21011457_5732.cpp: In function 'int main()':
0_0_21011457_5732.cpp:29:15: error: 'n' was not declared in this scope
   scanf("%d",&n);
               ^
0_0_21011457_5732.cpp:30:7: error: 'i' was not declared in this scope
   for(i=0;i<n;i++)scanf("%d%d",&p[i].x,&p[i].y);
       ^
0_0_21011457_5732.cpp:31:7: error: 'i' was not declared in this scope
   for(i=0;i<(1<<n);i++)for(j=0;j<n;j++)for(k=0;k<n;k++)f[i][j][k]=P{1e18,1e18};
       ^
0_0_21011457_5732.cpp:31:28: error: 'j' was not declared in this scope
   for(i=0;i<(1<<n);i++)for(j=0;j<n;j++)for(k=0;k<n;k++)f[i][j][k]=P{1e18,1e18};
                            ^
0_0_21011457_5732.cpp:31:44: error: 'k' was not declared in this scope
   for(i=0;i<(1<<n);i++)for(j=0;j<n;j++)for(k=0;k<n;k++)f[i][j][k]=P{1e18,1e18};
                                            ^
0_0_21011457_5732.cpp:32:7: error: 'i' was not declared in this scope
   for(i=0;i<n;i++)for(j=0;j<n;j++)if(j!=k)f[(1<<i)+(1<<j][i][j]=P{0.0,dis(i,j)};
       ^
0_0_21011457_5732.cpp:32:23: error: 'j' was not declared in this scope
   for(i=0;i<n;i++)for(j=0;j<n;j++)if(j!=k)f[(1<<i)+(1<<j][i][j]=P{0.0,dis(i,j)};
                       ^
0_0_21011457_5732.cpp:32:41: error: 'k' was not declared in this scope
   for(i=0;i<n;i++)for(j=0;j<n;j++)if(j!=k)f[(1<<i)+(1<<j][i][j]=P{0.0,dis(i,j)};
                                         ^
0_0_21011457_5732.cpp:32:57: error: expected ')' before ']' token
   for(i=0;i<n;i++)for(j=0;j<n;j++)if(j!=k)f[(1<<i)+(1<<j][i][j]=P{0.0,dis(i,j)};
                                                         ^
0_0_21011457_5732.cpp:32:80: error: expected ']' before ';' token
   for(i=0;i<n;i++)for(j=0;j<n;j++)if(j!=k)f[(1<<i)+(1<<j][i][j]=P{0.0,dis(i,j)};
                                                                                ^
0_0_21011457_5732.cpp:33:7: error: 'i' was not declared in this scope
   for(i=0;i<(1<<n);i++){
       ^
0_0_21011457_5732.cpp:34:8: error: 'j' was not declared in this scope
    for(j=0;j<n;j++)
        ^
0_0_21011457_5732.cpp:35:9: error: 'k' was not declared in this scope
     for(k=0;k<n;k++){
         ^
0_0_21011457_5732.cpp:36:10: error: 'A' was not declared in this scope
      for(A=0;A<n;A++)if(!(i>>A&1)){
          ^
0_0_21011457_5732.cpp:37:66: error: no matching function for call to 'P::P(<brace-enclosed initializer list>)'
       if(ok(j,k,A))up(f[i+(1<<A)][k][A],f[i][j][k],P{0.0,dis(k,A)});
                                                                  ^
0_0_21011457_5732.cpp:37:66: note: candidates are:
0_0_21011457_5732.cpp:4:2: note: P::P(double, double)
  P(double x = 0, double y = 0): x(x), y(y) {}
  ^
0_0_21011457_5732.cpp:4:2: note:   no known conversion for argument 2 from '<type error>' to 'double'
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(const P&)
 struct P{
        ^
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(P&&)
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided
0_0_21011457_5732.cpp:38:58: error: no matching function for call to 'P::P(<brace-enclosed initializer list>)'
       else up(f[i+(1<<A)][k][A],f[i][j][k]+P{1.0,dis(k,A)});
                                                          ^
0_0_21011457_5732.cpp:38:58: note: candidates are:
0_0_21011457_5732.cpp:4:2: note: P::P(double, double)
  P(double x = 0, double y = 0): x(x), y(y) {}
  ^
0_0_21011457_5732.cpp:4:2: note:   no known conversion for argument 2 from '<type error>' to 'double'
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(const P&)
 struct P{
        ^
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(P&&)
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided
0_0_21011457_5732.cpp:40:10: error: 'A' was not declared in this scope
      for(A=0;A<n;A++)if(!(i>>A&1))for(B=0;B<n;B++)if(!(i>>B&1)){
          ^
0_0_21011457_5732.cpp:40:39: error: 'B' was not declared in this scope
      for(A=0;A<n;A++)if(!(i>>A&1))for(B=0;B<n;B++)if(!(i>>B&1)){
                                       ^
0_0_21011457_5732.cpp:42:58: error: 'u' was not declared in this scope
       up(f[i+(1<<A)+(1<<B)][A][B],f[i][j][k]+P{1.0,dis(k,u)+dis(u,B)});
                                                          ^
0_0_21011457_5732.cpp:42:69: error: no matching function for call to 'P::P(<brace-enclosed initializer list>)'
       up(f[i+(1<<A)+(1<<B)][A][B],f[i][j][k]+P{1.0,dis(k,u)+dis(u,B)});
                                                                     ^
0_0_21011457_5732.cpp:42:69: note: candidates are:
0_0_21011457_5732.cpp:4:2: note: P::P(double, double)
  P(double x = 0, double y = 0): x(x), y(y) {}
  ^
0_0_21011457_5732.cpp:4:2: note:   no known conversion for argument 2 from '<type error>' to 'double'
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(const P&)
 struct P{
        ^
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided
0_0_21011457_5732.cpp:2:8: note: constexpr P::P(P&&)
0_0_21011457_5732.cpp:2:8: note:   candidate expects 1 argument, 2 provided


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-06-02 06:24:06, Gzip enabled