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_32795455_18114.cpp: In instantiation of 'bool taro::Segment<T>::isOn(const taro::Segment<T>&, bool) const [with T = double]':
0_0_32795455_18114.cpp:147:49:   required from here
0_0_32795455_18114.cpp:112:19: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t1 = (e - s).cross(sg.s - s);
                   ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:112:35: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t1 = (e - s).cross(sg.s - s);
                                   ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:113:19: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t2 = (e - s).cross(sg.e - s);
                   ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:113:35: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t2 = (e - s).cross(sg.e - s);
                                   ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:114:22: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t3 = (sg.e - sg.s).cross(e - sg.s);
                      ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:114:38: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t3 = (sg.e - sg.s).cross(e - sg.s);
                                      ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:115:22: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t4 = (sg.e - sg.s).cross(s - sg.s);
                      ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp:115:38: error: invalid use of incomplete type 'class taro::Vector<double>'
         T t4 = (sg.e - sg.s).cross(s - sg.s);
                                      ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^
0_0_32795455_18114.cpp: In instantiation of 'taro::Vector<T> taro::Point<T>::operator-(const taro::Point<T>&) const [with T = double]':
0_0_32795455_18114.cpp:112:19:   required from 'bool taro::Segment<T>::isOn(const taro::Segment<T>&, bool) const [with T = double]'
0_0_32795455_18114.cpp:147:49:   required from here
0_0_32795455_18114.cpp:29:15: error: return type 'class taro::Vector<double>' is incomplete
     Vector<T> operator-(const Point<T>& v) const { return Vector<T>(x - v.x, y - v.y); }
               ^
0_0_32795455_18114.cpp:29:85: error: invalid use of incomplete type 'class taro::Vector<double>'
     Vector<T> operator-(const Point<T>& v) const { return Vector<T>(x - v.x, y - v.y); }
                                                                                     ^
0_0_32795455_18114.cpp:14:7: error: declaration of 'class taro::Vector<double>'
 class Vector;
       ^


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 02:44:04, Gzip enabled