/in/foo.cc: In function 'int main()':
/in/foo.cc:8:11: error: no matching function for call to 'round(int&, int)'
round(s,1);
^
In file included from /usr/include/features.h:364:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:326:1: note: candidate: double round(double)
__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:326:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:41:0,
from /in/foo.cc:1:
/usr/include/c++/6/cmath:1802:5: note: candidate: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::round(_Tp)
round(_Tp __x)
^~~~~
/usr/include/c++/6/cmath:1802:5: note: template argument deduction/substitution failed:
/in/foo.cc:8:11: note: candidate expects 1 argument, 2 provided
round(s,1);
^
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:41:0,
from /in/foo.cc:1:
/usr/include/c++/6/cmath:1794:3: note: candidate: constexpr long double std::round(long double)
round(long double __x)
^~~~~
/usr/include/c++/6/cmath:1794:3: note: candidate expects 1 argument, 2 provided
/usr/include/c++/6/cmath:1790:3: note: candidate: constexpr float std::round(float)
round(float __x)
^~~~~
/usr/include/c++/6/cmath:1790:3: note: candidate expects 1 argument, 2 provided