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_37977516_18610.cpp: In function 'Vect operator+(const Vect&, const Vect&)':
0_0_37977516_18610.cpp:16:80: error: no matching function for call to 'Vect::Vect(double, double)'
 Vect operator+(const Vect &a, const Vect &b) { return Vect(a.x + b.x, a.y + b.y); }
                                                                                ^
0_0_37977516_18610.cpp:16:80: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
 struct Vect
        ^
0_0_37977516_18610.cpp:10:8: note:   candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator-(const Vect&, const Vect&)':
0_0_37977516_18610.cpp:17:80: error: no matching function for call to 'Vect::Vect(double, double)'
 Vect operator-(const Vect &a, const Vect &b) { return Vect(a.x - b.x, a.y - b.y); }
                                                                                ^
0_0_37977516_18610.cpp:17:80: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
 struct Vect
        ^
0_0_37977516_18610.cpp:10:8: note:   candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator-(const Vect&)':
0_0_37977516_18610.cpp:18:55: error: no matching function for call to 'Vect::Vect(double, double)'
 Vect operator-(const Vect &v) { return Vect(-v.x, -v.y); }
                                                       ^
0_0_37977516_18610.cpp:18:55: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
 struct Vect
        ^
0_0_37977516_18610.cpp:10:8: note:   candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp: In function 'Vect operator*(const double&, const Vect&)':
0_0_37977516_18610.cpp:19:78: error: no matching function for call to 'Vect::Vect(double, double)'
 Vect operator*(const double &k, const Vect &v) { return Vect(k * v.x, k * v.y); }
                                                                              ^
0_0_37977516_18610.cpp:19:78: note: candidates are:
0_0_37977516_18610.cpp:10:8: note: Vect::Vect()
 struct Vect
        ^
0_0_37977516_18610.cpp:10:8: note:   candidate expects 0 arguments, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(const Vect&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided
0_0_37977516_18610.cpp:10:8: note: constexpr Vect::Vect(Vect&&)
0_0_37977516_18610.cpp:10:8: note:   candidate expects 1 argument, 2 provided


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-05-05 20:21:12, Gzip enabled