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_23494809_3366.cpp:19:27: error: 'point' declared as function returning a function
  point()(double a,double b)
                           ^
0_0_23494809_3366.cpp: In function 'int inside_polygon(point, int, point*)':
0_0_23494809_3366.cpp:41:14: error: no matching function for call to 'point::point(int, int)'
  point q2(0,0);
              ^
0_0_23494809_3366.cpp:41:14: note: candidates are:
0_0_23494809_3366.cpp:18:2: note: point::point()
  point(){}
  ^
0_0_23494809_3366.cpp:18:2: note:   candidate expects 0 arguments, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(const point&)
 struct point
        ^
0_0_23494809_3366.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(point&&)
0_0_23494809_3366.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_23494809_3366.cpp: In function 'int main()':
0_0_23494809_3366.cpp:69:22: error: no matching function for call to 'point::point(double&, double&)'
    p[cnt++]=point(x,y);
                      ^
0_0_23494809_3366.cpp:69:22: note: candidates are:
0_0_23494809_3366.cpp:18:2: note: point::point()
  point(){}
  ^
0_0_23494809_3366.cpp:18:2: note:   candidate expects 0 arguments, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(const point&)
 struct point
        ^
0_0_23494809_3366.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(point&&)
0_0_23494809_3366.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_23494809_3366.cpp:75:32: error: no matching function for call to 'point::point(double, double)'
    point tmp(-v*t,b*t-0.5*g*t*t);
                                ^
0_0_23494809_3366.cpp:75:32: note: candidates are:
0_0_23494809_3366.cpp:18:2: note: point::point()
  point(){}
  ^
0_0_23494809_3366.cpp:18:2: note:   candidate expects 0 arguments, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(const point&)
 struct point
        ^
0_0_23494809_3366.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_23494809_3366.cpp:15:8: note: constexpr point::point(point&&)
0_0_23494809_3366.cpp:15: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-11-26 05:29:03, Gzip enabled