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_19231190_31522.cpp:19:13: error: 'sig' declared as an 'inline' variable
 int sig(db x){rt (x>eps)-(x<-eps);} 
             ^
0_0_19231190_31522.cpp:19:12: error: 'x' was not declared in this scope
 int sig(db x){rt (x>eps)-(x<-eps);} 
            ^
0_0_19231190_31522.cpp:19:14: error: expected ',' or ';' before '{' token
 int sig(db x){rt (x>eps)-(x<-eps);} 
              ^
0_0_19231190_31522.cpp:21:7: error: 'P' does not name a type
 const P&
       ^
0_0_19231190_31522.cpp:25:18: error: 'x' does not name a type
 struct P {    db x , y , z;    P(db a = 0 , db b = 0 , db c = 0):x(a),y(b),z(c){}    
                  ^
0_0_19231190_31522.cpp:25:39: error: expected ')' before '=' token
 struct P {    db x , y , z;    P(db a = 0 , db b = 0 , db c = 0):x(a),y(b),z(c){}    
                                       ^
0_0_19231190_31522.cpp:26:59: error: 'a' has not been declared
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                           ^
0_0_19231190_31522.cpp:26:106: error: 'a' has not been declared
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                                          ^
0_0_19231190_31522.cpp:26:155: error: expected identifier before '&' token
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                                                                                           ^
0_0_19231190_31522.cpp:26:197: error: 'a' has not been declared
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                                                                                                                                     ^
0_0_19231190_31522.cpp:26:263: error: 'a' has not been declared
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                                                                                                                                                                                                       ^
0_0_19231190_31522.cpp: In member function 'void P::in()':
0_0_19231190_31522.cpp:26:32: error: 'x' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                ^
0_0_19231190_31522.cpp:26:37: error: 'y' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                     ^
0_0_19231190_31522.cpp:26:42: error: 'z' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                          ^
0_0_19231190_31522.cpp: In member function 'P P::operator+(int)':
0_0_19231190_31522.cpp:26:69: error: 'x' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                     ^
0_0_19231190_31522.cpp:26:71: error: 'a' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                       ^
0_0_19231190_31522.cpp:26:77: error: 'y' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                             ^
0_0_19231190_31522.cpp:26:85: error: 'z' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                     ^
0_0_19231190_31522.cpp: In member function 'P P::operator-(int)':
0_0_19231190_31522.cpp:26:116: error: 'x' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                                                                    ^
0_0_19231190_31522.cpp:26:118: error: 'a' was not declared in this scope
 void in(){scanf("%lf%lf%lf" , &x , &y , &z);}    P op+(cp a)cs{rt P(x+a.x , y+a.y , z+a.z);}    P op-(cp a)cs{rt P(x-a.x , y-a.y , z-a.z);}    P op*(cs db&k)cs{rt P(x*k , y*k , z*k);}    P op^(cp a)cs{rt P(y*a.z-a.y*z , z*a.x-a.z*x , x*a.y-a.x*y);}    db op*(cp a)cs{rt x*a.x + y*a.y + z*a.z;}    db L(){rt sqrt(x*x + y*y + z*z);}    db rela(P v){rt sig(*this * v) * L();}    P cross(P a , P b){rt a-*this ^ b-*this;}    db dot(P a , P b){rt (a-*this) * (b-*this);}    
                                                                     


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-05-06 04:17:57, Gzip enabled