1_734_169_29657.cpp: In function 'int main()':
1_734_169_29657.cpp:42:25: error: call of overloaded 'div(int&, double&)' is ambiguous
ans+=div(dis[i],minv);
^
1_734_169_29657.cpp:42:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 1_734_169_29657.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:358:17: note: div_t div(int, int)
div_t __cdecl div(int _Numerator,int _Denominator);
^
1_734_169_29657.cpp:11:5: note: int div(double, double)
int div(double a , double b){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 1_734_169_29657.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:214:3: note: lldiv_t __gnu_cxx::div(long long int, long long int)
div(long long __n, long long __d)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:169:3: note: ldiv_t std::div(long int, long int)
div(long __i, long __j) { return ldiv(__i, __j); }
^
|