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_34725261_23497.cpp: In function 'void slove()':
0_0_34725261_23497.cpp:123:53: error: 'rnad' was not declared in this scope
         x0=p0.x+(rand()*1.0/RAND_MAX)*T*pow(-1,rnad());
                                                     ^
0_0_34725261_23497.cpp:124:53: error: no matching function for call to 'pow(int, int (&)())'
         y0+=p0.y+(rand()*1.0/RAND_MAX)*T*pow(-1,rand);
                                                     ^
0_0_34725261_23497.cpp:124:53: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 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 0_0_34725261_23497.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: double pow(double, double)
   double __cdecl pow(double _X,double _Y);
                  ^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note:   no known conversion for argument 2 from 'int()' to 'double'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
                 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 0_0_34725261_23497.cpp:7:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:434:5: note: template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)
     pow(_Tp __x, _Up __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:434:5: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath: In substitution of 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up) [with _Tp = int; _Up = int (*)()]':
0_0_34725261_23497.cpp:124:53:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:434:5: error: no type named '__type' in 'struct __gnu_cxx::__promote<int (*)(), false>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:411:3: note: constexpr long double std::pow(long double, long double)
   pow(long double __x, long double __y)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:411:3: note:   no known conversion for argument 2 from 'int()' to 'long double'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:407:3: note: constexpr float std::pow(float, float)
   pow(float __x, float __y)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:407:3: note:   no known conversion for argument 2 from 'int()' to 'float'


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 04:06:26, Gzip enabled