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_26156494_27152.cpp:10:19: error: 'doubel' was not declared in this scope
 typedef std::pair<doubel, double> pdd;
                   ^
0_0_26156494_27152.cpp:10:33: error: template argument 1 is invalid
 typedef std::pair<doubel, double> pdd;
                                 ^
0_0_26156494_27152.cpp:10:38: error: invalid type in declaration before ';' token
 typedef std::pair<doubel, double> pdd;
                                      ^
0_0_26156494_27152.cpp:11:19: error: 'doubel' was not declared in this scope
 typedef std::pair<doubel, int> pdi;
                   ^
0_0_26156494_27152.cpp:11:30: error: template argument 1 is invalid
 typedef std::pair<doubel, int> pdi;
                              ^
0_0_26156494_27152.cpp:11:35: error: invalid type in declaration before ';' token
 typedef std::pair<doubel, int> pdi;
                                   ^
0_0_26156494_27152.cpp: In constructor 'Point::Point(pdd)':
0_0_26156494_27152.cpp:7:12: error: request for member 'first' in 'a', which is of non-class type 'pdd {aka int}'
 #define ff first
            ^
0_0_26156494_27152.cpp:34:15: note: in expansion of macro 'ff'
         x = a.ff, y = a.ss;
               ^
0_0_26156494_27152.cpp:8:12: error: request for member 'second' in 'a', which is of non-class type 'pdd {aka int}'
 #define ss second
            ^
0_0_26156494_27152.cpp:34:25: note: in expansion of macro 'ss'
         x = a.ff, y = a.ss;
                         ^
0_0_26156494_27152.cpp: In member function 'double Point::degree()':
0_0_26156494_27152.cpp:102:73: error: 'pi' was not declared in this scope
         return sgn(y) ? std::atan((len() - x) / y) * 2 : (1 - sgn(x)) * pi / 2;
                                                                         ^
0_0_26156494_27152.cpp: In member function 'double Circle::area()':
0_0_26156494_27152.cpp:380:16: error: 'pi' was not declared in this scope
         return pi * r * r;
                ^
0_0_26156494_27152.cpp: In member function 'double Circle::len()':
0_0_26156494_27152.cpp:383:20: error: 'pi' was not declared in this scope
         return 2 * pi * r;
                    ^
0_0_26156494_27152.cpp: In member function 'void Triangle::sort()':
0_0_26156494_27152.cpp:638:20: error: cannot convert 'std::pair<double, int>' to 'pdi {aka int}' in assignment
             tmp[i] = std::make_pair(l[i], i);
                    ^
0_0_26156494_27152.cpp:8:12: error: request for member 'second' in 'tmp[i]', which is of non-class type 'pdi {aka int}'
 #define ss second
            ^
0_0_26156494_27152.cpp:641:31: note: in expansion of macro 'ss'
             a.p[i] = p[tmp[i].ss];
                               ^
0_0_26156494_27152.cpp: In member function 'void Triangle::sort(Triangle&)':
0_0_26156494_27152.cpp:649:20: error: cannot convert 'std::pair<double, int>' to 'pdi {aka int}' in assignment
             tmp[i] = std::make_pair(l[i], i);
                    ^
0_0_26156494_27152.cpp:8:12: error: request for member 'second' in 'tmp[i]', which is of non-class type 'pdi {aka int}'
 #define ss second
            ^
0_0_26156494_27152.cpp:652:31: note: in expansion of macro 'ss'
             a.p[i] = p[tmp[i].ss];
                               ^


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-23 09:23:38, Gzip enabled