#include <iostream> #include <cmath> using namespace std; int main() { cout << abs(2); }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:6: error: call of overloaded 'abs(int)' is ambiguous /usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double) /usr/include/c++/4.3/cmath:103: note: float std::abs(float) /usr/include/c++/4.3/cmath:107: note: long double std::abs(long double)
Standard output is empty