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_38993409_6283.cpp:16:20: error: expected ')' before ',' token
   16 |         Pt(double_x, double_y):x(_x), y(_y){}
      |           ~        ^
      |                    )
0_0_38993409_6283.cpp: In member function 'Pt Pt::operator-(Pt) const':
0_0_38993409_6283.cpp:17:76: error: no matching function for call to 'Pt::Pt(double, double)'
   17 |         Pt operator   -   (const Pt p1) const {return Pt(x - p1.x, y - p1.y);}
      |                                                                            ^
0_0_38993409_6283.cpp:15:9: note: candidate: 'Pt::Pt()'
   15 |         Pt(){}
      |         ^~
0_0_38993409_6283.cpp:15:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   13 | struct Pt {
      |        ^~
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp: In member function 'Pt Pt::operator+(Pt) const':
0_0_38993409_6283.cpp:18:76: error: no matching function for call to 'Pt::Pt(double, double)'
   18 |         Pt operator   +   (const Pt p1) const {return Pt(x + p1.x, y + p1.y);}
      |                                                                            ^
0_0_38993409_6283.cpp:15:9: note: candidate: 'Pt::Pt()'
   15 |         Pt(){}
      |         ^~
0_0_38993409_6283.cpp:15:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   13 | struct Pt {
      |        ^~
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp: In member function 'Pt Pt::operator*(double) const':
0_0_38993409_6283.cpp:19:67: error: no matching function for call to 'Pt::Pt(double, double)'
   19 |         Pt operator   *   (double s) const {return Pt(x * s, y * s);}
      |                                                                   ^
0_0_38993409_6283.cpp:15:9: note: candidate: 'Pt::Pt()'
   15 |         Pt(){}
      |         ^~
0_0_38993409_6283.cpp:15:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   13 | struct Pt {
      |        ^~
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp: In member function 'Pt Pt::operator/(double) const':
0_0_38993409_6283.cpp:20:67: error: no matching function for call to 'Pt::Pt(double, double)'
   20 |         Pt operator   /   (double s) const {return Pt(x / s, y / s);}
      |                                                                   ^
0_0_38993409_6283.cpp:15:9: note: candidate: 'Pt::Pt()'
   15 |         Pt(){}
      |         ^~
0_0_38993409_6283.cpp:15:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   13 | struct Pt {
      |        ^~
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp: In function 'Pt Ptoline(const Pt&, const Seg&)':
0_0_38993409_6283.cpp:50:55: error: no matching function for call to 'Pt::Pt(double, double)'
   50 |          Pt t(p.x + s.a.y - s.b.y, p.y + s.b.x - s.a.x);
      |                                                       ^
0_0_38993409_6283.cpp:15:9: note: candidate: 'Pt::Pt()'
   15 |         Pt(){}
      |         ^~
0_0_38993409_6283.cpp:15:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   13 | struct Pt {
      |        ^~
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp:13:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993409_6283.cpp:13:8: note:   candidate expects 1 argument, 2 provided
0_0_38993409_6283.cpp: In function 'Seg mirror(const Seg&, const Seg&)':
0_0_38993409_6283.cpp:63:54: error: expected '}' before ')' token
   63 |          return {mirror(l.a, axis), mirror(l.b, axis));
      |                 ~                                    ^
0_0_38993409_6283.cpp:63:54: error: expected ';' before ')' token
   63 |          return {mirror(l.a, axis), mirror(l.b, axis));
      |                                                      ^
      |                                                      ;
0_0_38993409_6283.cpp:63:54: error: expected primary-expression before ')' token
0_0_38993409_6283.cpp: In function 'Plg mirror(const Plg&, const Seg&)':
0_0_38993409_6283.cpp:70:10: error: expected primary-expression before ')' token
   70 |          )
      |          ^
0_0_38993409_6283.cpp:74:56: error: a function-definition is not allowed here before '{' token
   74 | void cut(const Plg &plg, const Seg &s, Plg *u, Plg *b) {
      |                                                        ^
0_0_38993409_6283.cpp:92:64: error: a function-definition is not allowed here before '{' token
   92 | vector<IPlg> search(const Plg &p, int fold_idx, int block_idx) {
      |                                                                ^
0_0_38993409_6283.cpp:111:46: error: a function-definition is not allowed here before '{' token
  111 | int connected_cnt(const vector<IPlg> &iplgs) {
      |                                              ^
0_0_38993409_6283.cpp:183:2: error: expected '}' at end of input
  183 | }
      |  ^
0_0_38993409_6283.cpp:66:52: note: to match this '{'
   66 | inline Plg mirror(const Plg &plg, const Seg &axis) {
      |                                                    ^


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-17 18:43:52, Gzip enabled