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_15484178_13333.cpp: In function 'int main()':
0_0_15484178_13333.cpp:115:43: error: 'eps' was not declared in this scope
     if((a1[i]-a2[i]).cross(a1[j]-a2[j]) < eps)//TODO eps large enough?
                                           ^
0_0_15484178_13333.cpp:119:38: error: 'cross' was not declared in this scope
      R S1 = cross(a1[i], a2[i], a1[j]);
                                      ^
0_0_15484178_13333.cpp:121:26: error: no match for 'operator*' (operand types are 'R2' and 'R {aka double}')
      inter[i][j] = (a1[j]*S2 - a2[j]*S1) / (S2-S1);//TODO verify
                          ^
0_0_15484178_13333.cpp:121:37: error: no match for 'operator*' (operand types are 'R2' and 'R {aka double}')
      inter[i][j] = (a1[j]*S2 - a2[j]*S1) / (S2-S1);//TODO verify
                                     ^
0_0_15484178_13333.cpp:134:17: error: no match for 'operator=' (operand types are 'Point' and 'R2')
       q2[q2n++] = inter[ii][jj];
                 ^
0_0_15484178_13333.cpp:134:17: note: candidates are:
0_0_15484178_13333.cpp:44:8: note: Point& Point::operator=(const Point&)
 struct Point{
        ^
0_0_15484178_13333.cpp:44:8: note:   no known conversion for argument 1 from 'R2' to 'const Point&'
0_0_15484178_13333.cpp:44:8: note: Point& Point::operator=(Point&&)
0_0_15484178_13333.cpp:44:8: note:   no known conversion for argument 1 from 'R2' to 'Point&&'
0_0_15484178_13333.cpp:175:24: error: invalid types 'int[int]' for array subscript
     printf("%d", c[i][j]);
                        ^


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-25 19:16:18, Gzip enabled