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_22146186_768.cpp:20:9: error: 'complex' does not name a type
 typedef complex<double> Point;
         ^
0_0_22146186_768.cpp:22:18: error: 'Point' does not name a type
 double Det(const Point & a, const Point & b) {return (conj(a) * b).imag();}
                  ^
0_0_22146186_768.cpp:22:35: error: 'Point' does not name a type
 double Det(const Point & a, const Point & b) {return (conj(a) * b).imag();}
                                   ^
0_0_22146186_768.cpp: In function 'double Det(const int&, const int&)':
0_0_22146186_768.cpp:22:61: error: 'conj' was not declared in this scope
 double Det(const Point & a, const Point & b) {return (conj(a) * b).imag();}
                                                             ^
0_0_22146186_768.cpp: At global scope:
0_0_22146186_768.cpp:23:18: error: 'Point' does not name a type
 double Dot(const Point & a, const Point & b) {return (conj(a) * b).real();}
                  ^
0_0_22146186_768.cpp:23:35: error: 'Point' does not name a type
 double Dot(const Point & a, const Point & b) {return (conj(a) * b).real();}
                                   ^
0_0_22146186_768.cpp: In function 'double Dot(const int&, const int&)':
0_0_22146186_768.cpp:23:61: error: 'conj' was not declared in this scope
 double Dot(const Point & a, const Point & b) {return (conj(a) * b).real();}
                                                             ^
0_0_22146186_768.cpp: At global scope:
0_0_22146186_768.cpp:27:1: error: 'Point' does not name a type
 Point ori = (Point) {0, 0};
 ^
0_0_22146186_768.cpp:28:28: error: 'Point' was not declared in this scope
 struct Line :public vector<Point>{
                            ^
0_0_22146186_768.cpp:28:33: error: template argument 1 is invalid
 struct Line :public vector<Point>{
                                 ^
0_0_22146186_768.cpp:28:33: error: template argument 2 is invalid
0_0_22146186_768.cpp:31:16: error: expected ')' before 'a'
     Line(Point a, Point b){
                ^
0_0_22146186_768.cpp:36:1: error: 'Point' does not name a type
 Point Vec(Line a) {return a[1] - a[0];}
 ^
0_0_22146186_768.cpp:37:1: error: 'Point' does not name a type
 Point LineIntersection(const Line & a, const Line & b){
 ^
0_0_22146186_768.cpp: In function 'bool operator<(const Line&, const Line&)':
0_0_22146186_768.cpp:48:24: error: 'ori' was not declared in this scope
     Line cur = (Line) {ori, (Point) {cos(_ang), sin(_ang)}};
                        ^
0_0_22146186_768.cpp:48:30: error: 'Point' was not declared in this scope
     Line cur = (Line) {ori, (Point) {cos(_ang), sin(_ang)}};
                              ^
0_0_22146186_768.cpp:48:21: error: expected primary-expression before ')' token
     Line cur = (Line) {ori, (Point) {cos(_ang), sin(_ang)}};
                     ^
0_0_22146186_768.cpp:148:1: error: expected ',' or ';' at end of input
 }
 ^
0_0_22146186_768.cpp:148:1: error: expected '}' at end of input


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-29 05:55:21, Gzip enabled