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_36443943_5249.cpp: In function 'int main()':
0_0_36443943_5249.cpp:23:20: error: no matching function for call to 'abs(ll&, ll&)'
   ll x1=get(abs(a,b)),x2=abs(a,b);
                    ^
0_0_36443943_5249.cpp:23:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/assert.h:17:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
   int __cdecl abs(int _X);
               ^
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note:   candidate expects 1 argument, 2 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:442:5: note: template<class _Tp> std::_Expr<std::_UnClos<std::_Abs, std::_ValArray, _Tp>, _Tp> std::abs(const std::valarray<_Tp>&)
     _DEFINE_EXPR_UNARY_FUNCTION(abs, _Abs)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:442:5: note:   template argument deduction/substitution failed:
0_0_36443943_5249.cpp:23:20: note:   mismatched types 'const std::valarray<_Tp>' and 'll {aka long long int}'
   ll x1=get(abs(a,b)),x2=abs(a,b);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:587:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:442:5: note: template<class _Dom> std::_Expr<std::_UnClos<std::_Abs, std::_Expr, _Dom>, typename _Dom::value_type> std::abs(const std::_Expr<_Dom1, typename _Dom1::value_type>&)
     _DEFINE_EXPR_UNARY_FUNCTION(abs, _Abs)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/valarray_after.h:442:5: note:   template argument deduction/substitution failed:
0_0_36443943_5249.cpp:23:20: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'll {aka long long int}'
   ll x1=get(abs(a,b)),x2=abs(a,b);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:592:5: note: template<class _Tp> _Tp std::abs(const std::complex<_Tp>&)
     abs(const complex<_Tp>& __z) { return __complex_abs(__z.__rep()); }
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:592:5: note:   template argument deduction/substitution failed:
0_0_36443943_5249.cpp:23:20: note:   mismatched types 'const std::complex<_Tp>' and 'll {aka long long int}'
   ll x1=get(abs(a,b)),x2=abs(a,b);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:47:0,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: note: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:166:3: note: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:166:3: note:   candidate expects 1 argument, 2 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:99:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp)
     abs(_Tp __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:99:5: note:   template argument deduction/substitution failed:
0_0_36443943_5249.cpp:23:20: note:   candidate expects 1 argument, 2 provided
   ll x1=get(abs(a,b)),x2=abs(a,b);
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
                 from 0_0_36443943_5249.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:91:3: note: constexpr long double std::abs(long double)
   abs(long double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:91:3: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:87:3: note: constexpr float std::abs(float)
   abs(float __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:87:3: note:   candidate expects 1 argument, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
   abs(double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note:   candidate expects 1 argument, 2 provided
0_0_36443943_5249.cpp:27:17: error: 'x2' was not declared in this scope
   else if(x1>1&&x2>1&&a%x1==b%x1&&a%x2==b%x2)
                 ^


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-09-29 05:26:08, Gzip enabled