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_15405817_2096.cpp:9:5: error: 'PT::PT()' cannot be overloaded
     PT():(double x, double y):x(x),y(y){}
     ^
0_0_15405817_2096.cpp:8:5: error: with 'PT::PT()'
     PT():{}
     ^
0_0_15405817_2096.cpp: In constructor 'PT::PT()':
0_0_15405817_2096.cpp:8:10: error: expected identifier before '{' token
     PT():{}
          ^
0_0_15405817_2096.cpp: In constructor 'PT::PT()':
0_0_15405817_2096.cpp:9:10: error: anachronistic old-style base class initializer [-fpermissive]
     PT():(double x, double y):x(x),y(y){}
          ^
0_0_15405817_2096.cpp:9:9: error: unnamed initializer for 'PT', which has no base classes
     PT():(double x, double y):x(x),y(y){}
         ^
0_0_15405817_2096.cpp:9:11: error: expected primary-expression before 'double'
     PT():(double x, double y):x(x),y(y){}
           ^
0_0_15405817_2096.cpp:9:21: error: expected primary-expression before 'double'
     PT():(double x, double y):x(x),y(y){}
                     ^
0_0_15405817_2096.cpp:9:30: error: expected '{' before ':' token
     PT():(double x, double y):x(x),y(y){}
                              ^
0_0_15405817_2096.cpp: In function 'int main()':
0_0_15405817_2096.cpp:20:21: error: no matching function for call to 'PT::PT(double&, double&)'
         PT st=PT(x,y);
                     ^
0_0_15405817_2096.cpp:20:21: note: candidates are:
0_0_15405817_2096.cpp:8:5: note: PT::PT()
     PT():{}
     ^
0_0_15405817_2096.cpp:8:5: note:   candidate expects 0 arguments, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(const PT&)
 struct PT
        ^
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(PT&&)
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:21:27: error: no matching function for call to 'PT::PT(double, double)'
         PT ed=PT(x+vx,y+vy);
                           ^
0_0_15405817_2096.cpp:21:27: note: candidates are:
0_0_15405817_2096.cpp:8:5: note: PT::PT()
     PT():{}
     ^
0_0_15405817_2096.cpp:8:5: note:   candidate expects 0 arguments, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(const PT&)
 struct PT
        ^
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(PT&&)
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:22:25: error: no matching function for call to 'PT::PT(int, int)'
         PT center=PT(0,0);
                         ^
0_0_15405817_2096.cpp:22:25: note: candidates are:
0_0_15405817_2096.cpp:8:5: note: PT::PT()
     PT():{}
     ^
0_0_15405817_2096.cpp:8:5: note:   candidate expects 0 arguments, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(const PT&)
 struct PT
        ^
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:5:8: note: constexpr PT::PT(PT&&)
0_0_15405817_2096.cpp:5:8: note:   candidate expects 1 argument, 2 provided
0_0_15405817_2096.cpp:23:36: error: 'ptoline' was not declared in this scope
         PT mid=ptoline(center,st,ed);
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-28 06:05:37, Gzip enabled