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_30098307_24280.cpp: In member function 'point point::operator+(const point&) const':
0_0_30098307_24280.cpp:18:74: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point operator + (const point &k1) const{return (point){k1.x+x,k1.y+y};}
                                                                          ^
0_0_30098307_24280.cpp:18:74: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::operator-(const point&) const':
0_0_30098307_24280.cpp:19:74: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point operator - (const point &k1) const{return (point){x-k1.x,y-k1.y};}
                                                                          ^
0_0_30098307_24280.cpp:19:74: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::operator*(db) const':
0_0_30098307_24280.cpp:20:60: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point operator * (db k1) const{return (point){x*k1,y*k1};}
                                                            ^
0_0_30098307_24280.cpp:20:60: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::operator/(db) const':
0_0_30098307_24280.cpp:21:60: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point operator / (db k1) const{return (point){x/k1,y/k1};}
                                                            ^
0_0_30098307_24280.cpp:21:60: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::turn(db)':
0_0_30098307_24280.cpp:24:77: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point turn(db k1){return (point){x*cos(k1)-y*sin(k1),x*sin(k1)+y*cos(k1)};}
                                                                             ^
0_0_30098307_24280.cpp:24:77: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::turn90()':
0_0_30098307_24280.cpp:25:39: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point turn90(){return (point){-y,x};}
                                       ^
0_0_30098307_24280.cpp:25:39: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In member function 'point point::unit()':
0_0_30098307_24280.cpp:33:52: error: no matching function for call to 'point::point(<brace-enclosed initializer list>)'
     point unit(){db w=abs(); return (point){x/w,y/w};}
                                                    ^
0_0_30098307_24280.cpp:33:52: note: candidates are:
0_0_30098307_24280.cpp:15:8: note: point::point()
 struct point{
        ^
0_0_30098307_24280.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(const point&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp:15:8: note: constexpr point::point(point&&)
0_0_30098307_24280.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_30098307_24280.cpp: In function 'int main()':
0_0_30098307_24280.cpp:178:29: error: no matching function for call to 'std::vector<circle>::push_back(<brace-enclosed initializer list>)'
             szc.pb({{x,y},r});
                             ^
0_0_30098307_24280.cpp:178:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30098307_24280.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = circle; _Alloc = std::allocator<circle>; std::vector<_Tp, _Alloc>::value_type = circle]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const circle&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = circle; _Alloc = std::allocator<circle>; std::vector<_Tp, _Alloc>::value_type = circle]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<circle>::value_type&& {aka circle&&}'
0_0_30098307_24280.cpp:184:25: error: no matching function for call to 'std::vector<point>::push_back(<brace-enclosed initializer list>)'
             szp.pb({x,y});
                         ^
0_0_30098307_24280.cpp:184:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30098307_24280.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = point; _Alloc = std::allocator<point>; std::vector<_Tp, _Alloc>::value_type = point]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const point&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = point; _Alloc = std::allocator<point>; std::vector<_Tp, _Alloc>::value_type = point]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7


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 07:10:59, Gzip enabled