/in/foo.cc: In function 'int main()':
/in/foo.cc:117:29: error: no matching function for call to 'find(int, double)'
printf("%d", find(0, 1e9));
^
In file included from /usr/include/c++/6/algorithm:62:0,
from /in/foo.cc:4:
/usr/include/c++/6/bits/stl_algo.h:3784:5: note: candidate: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^~~~
/usr/include/c++/6/bits/stl_algo.h:3784:5: note: template argument deduction/substitution failed:
/in/foo.cc:117:29: note: deduced conflicting types for parameter '_IIter' ('int' and 'double')
printf("%d", find(0, 1e9));
^
/in/foo.cc:111:12: warning: unused variable 'a' [-Wunused-variable]
int n, a, b, w;
^
/in/foo.cc:111:15: warning: unused variable 'b' [-Wunused-variable]
int n, a, b, w;
^
/in/foo.cc:111:18: warning: unused variable 'w' [-Wunused-variable]
int n, a, b, w;
^