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_38993312_9711.cpp:18:57: error: stray '\241' in program
   18 |         Pt operator   *   (double s) const {return Pt(x <a1><af> s, y <a1><af> s);}
      |                                                         ^~~~
0_0_38993312_9711.cpp:18:58: error: stray '\257' in program
   18 |         Pt operator   *   (double s) const {return Pt(x <a1><af> s, y <a1><af> s);}
      |                                                             ^~~~
0_0_38993312_9711.cpp:18:65: error: stray '\241' in program
   18 |         Pt operator   *   (double s) const {return Pt(x <a1><af> s, y <a1><af> s);}
      |                                                                       ^~~~
0_0_38993312_9711.cpp:18:66: error: stray '\257' in program
   18 |         Pt operator   *   (double s) const {return Pt(x <a1><af> s, y <a1><af> s);}
      |                                                                           ^~~~
0_0_38993312_9711.cpp:15:20: error: expected ')' before ',' token
   15 |         Pt(double_x, double_y):x(_x), y(_y){}
      |           ~        ^
      |                    )
0_0_38993312_9711.cpp:22:21: error: expected '}' at end of input
   22 |                  cin
      |                     ^
0_0_38993312_9711.cpp:12:11: note: to match this '{'
   12 | struct Pt {
      |           ^
0_0_38993312_9711.cpp: In member function 'Pt Pt::operator-(Pt) const':
0_0_38993312_9711.cpp:16:76: error: no matching function for call to 'Pt::Pt(double, double)'
   16 |         Pt operator   -   (const Pt pl) const {return Pt(x - pl.x, y - pl.y);}
      |                                                                            ^
0_0_38993312_9711.cpp:14:9: note: candidate: 'Pt::Pt()'
   14 |         Pt(){}
      |         ^~
0_0_38993312_9711.cpp:14:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   12 | struct Pt {
      |        ^~
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp: In member function 'Pt Pt::operator+(Pt) const':
0_0_38993312_9711.cpp:17:76: error: no matching function for call to 'Pt::Pt(double, double)'
   17 |         Pt operator   +   (const Pt pl) const {return Pt(x + pl.x, y + pl.y);}
      |                                                                            ^
0_0_38993312_9711.cpp:14:9: note: candidate: 'Pt::Pt()'
   14 |         Pt(){}
      |         ^~
0_0_38993312_9711.cpp:14:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   12 | struct Pt {
      |        ^~
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp: In member function 'Pt Pt::operator*(double) const':
0_0_38993312_9711.cpp:18:54: error: expected primary-expression before '(' token
   18 |         Pt operator   *   (double s) const {return Pt(x กฏ s, y กฏ s);}
      |                                                      ^
0_0_38993312_9711.cpp:18:60: error: expected ')' before 's'
   18 |         Pt operator   *   (double s) const {return Pt(x กฏ s, y กฏ s);}
      |                                                            ^
0_0_38993312_9711.cpp:18:54: note: to match this '('
   18 |         Pt operator   *   (double s) const {return Pt(x กฏ s, y กฏ s);}
      |                                                      ^
0_0_38993312_9711.cpp:18:68: error: expected ')' before 's'
   18 |         Pt operator   *   (double s) const {return Pt(x กฏ s, y กฏ s);}
      |                                                                    ^
0_0_38993312_9711.cpp:18:54: note: to match this '('
   18 |         Pt operator   *   (double s) const {return Pt(x กฏ s, y กฏ s);}
      |                                                      ^
0_0_38993312_9711.cpp: In member function 'Pt Pt::operator/(double) const':
0_0_38993312_9711.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_38993312_9711.cpp:14:9: note: candidate: 'Pt::Pt()'
   14 |         Pt(){}
      |         ^~
0_0_38993312_9711.cpp:14:9: note:   candidate expects 0 arguments, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(const Pt&)'
   12 | struct Pt {
      |        ^~
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp:12:8: note: candidate: 'constexpr Pt::Pt(Pt&&)'
0_0_38993312_9711.cpp:12:8: note:   candidate expects 1 argument, 2 provided
0_0_38993312_9711.cpp: In member function 'bool Pt::operator<(Pt) const':
0_0_38993312_9711.cpp:8:13: error: 'le' was not declared in this scope
    8 | #define eps le-7
      |             ^~
0_0_38993312_9711.cpp:20:62: note: in expansion of macro 'eps'
   20 |         bool operator < (const Pt pl) const {return y < pl.y-eps || (y < pi.y+eps && x < pl.x-eps);}
      |                                                              ^~~
0_0_38993312_9711.cpp:20:74: error: 'pi' was not declared in this scope; did you mean 'std::numbers::pi'?
   20 |         bool operator < (const Pt pl) const {return y < pl.y-eps || (y < pi.y+eps && x < pl.x-eps);}
      |                                                                          ^~
      |                                                                          std::numbers::pi
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/max_size_type.h:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
                 from 0_0_38993312_9711.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:125:27: note: 'std::numbers::pi' declared here
  125 |   inline constexpr double pi = pi_v<double>;
      |                           ^~
0_0_38993312_9711.cpp: In member function 'void Pt::read()':
0_0_38993312_9711.cpp:22:21: error: expected ';' at end of input
   22 |                  cin
      |                     ^
0_0_38993312_9711.cpp:22:21: error: expected '}' at end of input
0_0_38993312_9711.cpp:21:21: note: to match this '{'
   21 |         void read() {
      |                     ^
0_0_38993312_9711.cpp: At global scope:
0_0_38993312_9711.cpp:22:21: error: expected unqualified-id at end of input
   22 |                  cin
      |                     ^


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-19 14:04:10, Gzip enabled