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_23051972_24403.cpp: In member function 'double T3dhull::ptoplane(TPoint&, fac&)':
0_0_23051972_24403.cpp:52:26: error: 'struct fac' has no member named 'b'
           TPoint m=ply[f.b]-ply[f.a],n=ply[f.c]-ply[f.a],t=p-ply[f.a];
                          ^
0_0_23051972_24403.cpp:52:35: error: 'struct fac' has no member named 'a'
           TPoint m=ply[f.b]-ply[f.a],n=ply[f.c]-ply[f.a],t=p-ply[f.a];
                                   ^
0_0_23051972_24403.cpp:53:20: error: no match for 'operator*' (operand types are 'TPoint' and 'int')
           return (m*n)^t;
                    ^
0_0_23051972_24403.cpp:53:20: note: candidate is:
0_0_23051972_24403.cpp:17:13: note: TPoint TPoint::operator*(TPoint)
      TPoint operator*(const TPoint p) {return TPoint(y*p.z-z*p.y,z*p.x-x*p.z,x*p.y-y*p.x);}//叉积
             ^
0_0_23051972_24403.cpp:17:13: note:   no known conversion for argument 1 from 'int' to 'TPoint'
0_0_23051972_24403.cpp:53:24: error: 't' was not declared in this scope
           return (m*n)^t;
                        ^
0_0_23051972_24403.cpp: In member function 'void T3dhull::deal(int, int, int)':
0_0_23051972_24403.cpp:61:23: error: 'struct fac' has no member named 'a'
                   add.a=b,add.b=a,add.c=p,add.ok=1;
                       ^
0_0_23051972_24403.cpp:61:31: error: 'struct fac' has no member named 'b'
                   add.a=b,add.b=a,add.c=p,add.ok=1;
                               ^
0_0_23051972_24403.cpp:61:39: error: 'struct fac' has no member named 'c'
                   add.a=b,add.b=a,add.c=p,add.ok=1;
                                       ^
0_0_23051972_24403.cpp: In member function 'void T3dhull::dfs(int, int)':
0_0_23051972_24403.cpp:70:26: error: 'struct fac' has no member named 'b'
          deal(p,tri[cnt].b,tri[cnt].a);
                          ^
0_0_23051972_24403.cpp:70:37: error: 'struct fac' has no member named 'a'
          deal(p,tri[cnt].b,tri[cnt].a);
                                     ^
0_0_23051972_24403.cpp:71:26: error: 'struct fac' has no member named 'c'
          deal(p,tri[cnt].c,tri[cnt].b);
                          ^
0_0_23051972_24403.cpp:71:37: error: 'struct fac' has no member named 'b'
          deal(p,tri[cnt].c,tri[cnt].b);
                                     ^
0_0_23051972_24403.cpp:72:26: error: 'struct fac' has no member named 'a'
          deal(p,tri[cnt].a,tri[cnt].c);
                          ^
0_0_23051972_24403.cpp:72:37: error: 'struct fac' has no member named 'c'
          deal(p,tri[cnt].a,tri[cnt].c);
                                     ^
0_0_23051972_24403.cpp: In member function 'bool T3dhull::same(int, int)':
0_0_23051972_24403.cpp:75:30: error: 'struct fac' has no member named 'a'
          TPoint a=ply[tri[s].a],b=ply[tri[s].b],c=ply[tri[s].c];
                              ^
0_0_23051972_24403.cpp:76:31: error: 'b' was not declared in this scope
          return fabs(volume(a,b,c,ply[tri[e].a]))<eps
                               ^
0_0_23051972_24403.cpp:76:33: error: 'c' was not declared in this scope
          return fabs(volume(a,b,c,ply[tri[e].a]))<eps
                                 ^
0_0_23051972_24403.cpp:76:46: error: 'struct fac' has no member named 'a'
          return fabs(volume(a,b,c,ply[tri[e].a]))<eps
                                              ^
0_0_23051972_24403.cpp:77:45: error: 'struct fac' has no member named 'b'
              &&fabs(volume(a,b,c,ply[tri[e].b]))<eps
                                             ^
0_0_23051972_24403.cpp:78:45: error: 'struct fac' has no member named 'c'
              &&fabs(volume(a,b,c,ply[tri[e].c]))<eps;
                                             ^
0_0_23051972_24403.cpp: In member function 'void T3dhull::construct()':
0_0_23051972_24403.cpp:104:18: error: 'struct fac' has no member named 'a'
              add.a=(i+1)%4,add.b=(i+2)%4,add.c=(i+3)%4,add.ok=1;
                  ^
0_0_23051972_24403.cpp:104:32: error: 'struct fac' has no member named 'b'
              add.a=(i+1)%4,add.b=(i+2)%4,add.c=(i+3)%4,add.ok=1;
                                ^
0_0_23051972_24403.cpp:104:46: error: 'struct fac' has no member named 'c'
              add.a=(i+1)%4,add.b=(i+2)%4,add.c=(i+3)%4,add.ok=1;
                                              ^
0_0_23051972_24403.cpp:105:52: error: 'struct fac' has no member named 'b'
              if((ptoplane(ply[i],add))>0) swap(add.b,add.c);//保证逆时针,即法向量朝外,这样新点才可看到。
                                                    ^
0_0_23051972_24403.cpp:105:58: error: 'struct fac' has no member named 'c'
              if((ptoplane(ply[i],add))>0) swap(add.b,add.c);//保证逆时针,即法向量朝外,这样新点才可看到。
                                                          ^
0_0_23051972_24403.cpp:106:22: error: 'struct fac' has no member named 'a'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                      ^
0_0_23051972_24403.cpp:106:29: error: 'struct fac' has no member named 'b'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                             ^
0_0_23051972_24403.cpp:106:40: error: 'struct fac' has no member named 'b'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                                        ^
0_0_23051972_24403.cpp:106:47: error: 'struct fac' has no member named 'c'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                                               ^
0_0_23051972_24403.cpp:106:58: error: 'struct fac' has no member named 'c'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                                                          ^
0_0_23051972_24403.cpp:106:65: error: 'struct fac' has no member named 'a'
              vis[add.a][add.b]=vis[add.b][add.c]=vis[add.c][add.a]=trianglecnt;//逆向的有向边保存
                                                                 ^
0_0_23051972_24403.cpp: In function 'int main()':
0_0_23051972_24403.cpp:135:58: error: 'struct fac' has no member named 'a'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                          ^
0_0_23051972_24403.cpp:135:74: error: 'struct fac' has no member named 'b'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                                          ^
0_0_23051972_24403.cpp:135:90: error: 'struct fac' has no member named 'c'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                                                          ^
0_0_23051972_24403.cpp:135:117: error: 'struct fac' has no member named 'a'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                                                                                     ^
0_0_23051972_24403.cpp:135:133: error: 'struct fac' has no member named 'b'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                                                                                                     ^
0_0_23051972_24403.cpp:135:149: error: 'struct fac' has no member named 'c'
                  ans=min(ans,hull.volume(dd,hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c])/hull.area(hull.ply[tmp.a],hull.ply[tmp.b],hull.ply[tmp.c]));
                                                                                                                                                     ^


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 09:06:49, Gzip enabled