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_36753195_12397.cpp:72:21: error: 'Point' was not declared in this scope
 double intersection(Point a, double r1, Point b, double r2) {
                     ^
0_0_36753195_12397.cpp:72:30: error: expected primary-expression before 'double'
 double intersection(Point a, double r1, Point b, double r2) {
                              ^
0_0_36753195_12397.cpp:72:41: error: 'Point' was not declared in this scope
 double intersection(Point a, double r1, Point b, double r2) {
                                         ^
0_0_36753195_12397.cpp:72:50: error: expected primary-expression before 'double'
 double intersection(Point a, double r1, Point b, double r2) {
                                                  ^
0_0_36753195_12397.cpp:72:59: error: expression list treated as compound expression in initializer [-fpermissive]
 double intersection(Point a, double r1, Point b, double r2) {
                                                           ^
0_0_36753195_12397.cpp:72:61: error: expected ',' or ';' before '{' token
 double intersection(Point a, double r1, Point b, double r2) {
                                                             ^
0_0_36753195_12397.cpp: In function 'int main()':
0_0_36753195_12397.cpp:89:9: error: 'Point' was not declared in this scope
         Point p1{x1, y1}, p2{x2, y2};
         ^
0_0_36753195_12397.cpp:89:25: error: expected primary-expression before ',' token
         Point p1{x1, y1}, p2{x2, y2};
                         ^
0_0_36753195_12397.cpp:89:27: error: 'p2' was not declared in this scope
         Point p1{x1, y1}, p2{x2, y2};
                           ^
0_0_36753195_12397.cpp:90:51: error: 'p1' was not declared in this scope
         printf("Case #%d: %f\n", tc, intersection(p1, R, p2, R) - intersection(p1, R, p2, r) * 2 + intersection(p1, r, p2, r));
                                                   ^
0_0_36753195_12397.cpp:90:63: error: 'intersection' cannot be used as a function
         printf("Case #%d: %f\n", tc, intersection(p1, R, p2, R) - intersection(p1, R, p2, r) * 2 + intersection(p1, r, p2, r));
                                                               ^
0_0_36753195_12397.cpp:90:92: error: 'intersection' cannot be used as a function
         printf("Case #%d: %f\n", tc, intersection(p1, R, p2, R) - intersection(p1, R, p2, r) * 2 + intersection(p1, r, p2, r));
                                                                                            ^
0_0_36753195_12397.cpp:90:125: error: 'intersection' cannot be used as a function
         printf("Case #%d: %f\n", tc, intersection(p1, R, p2, R) - intersection(p1, R, p2, r) * 2 + intersection(p1, r, p2, r));
                                                                                                                             ^


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-09-28 20:10:56, Gzip enabled