Visual Studio saying, what wrong :
1>------ Build started: Project: test19, Configuration: Debug Win32 ------
1> test19.cpp
1>c:\documents\visual studio 2010\projects\test19\test19\test19.cpp(15): error C2668: 'fabs' : ambiguous call to overloaded function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(565): could be 'long double fabs(long double)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(517): or 'float fabs(float)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(118): or 'double fabs(double)'
1> while trying to match the argument list '(int)'
1>c:\documents\visual studio 2010\projects\test19\test19\test19.cpp(17): error C2668: 'fabs' : ambiguous call to overloaded function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(565): could be 'long double fabs(long double)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(517): or 'float fabs(float)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(118): or 'double fabs(double)'
1> while trying to match the argument list '(int)'
1>c:\documents\visual studio 2010\projects\test19\test19\test19.cpp(17): error C2668: 'fabs' : ambiguous call to overloaded function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(565): could be 'long double fabs(long double)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(517): or 'float fabs(float)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(118): or 'double fabs(double)'
1> while trying to match the argument list '(int)'
1>c:\documents\visual studio 2010\projects\test19\test19\test19.cpp(19): error C2668: 'fabs' : ambiguous call to overloaded function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(565): could be 'long double fabs(long double)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(517): or 'float fabs(float)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(118): or 'double fabs(double)'
1> while trying to match the argument list '(int)'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2
solved What’s Wrong with My C++ Code is Wrong on CodeForces?