/in/foo.cc: In function 'ull hash1(char*)':
/in/foo.cc:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s);i++)
~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:40:5: error: reference to 'end' is ambiguous
end=hash1("123804765");
^~~
/in/foo.cc:6:5: note: candidates are: ull end
ull end;
^~~
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/6/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/6/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/6/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^~~
In file included from /usr/include/c++/6/bits/range_access.h:36:0,
from /usr/include/c++/6/string:51,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/6/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~
/in/foo.cc:40:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
end=hash1("123804765");
^
/in/foo.cc:57:29: error: reference to 'end' is ambiguous
if(que[head].hash1==end)
^~~
/in/foo.cc:6:5: note: candidates are: ull end
ull end;
^~~
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/6/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/6/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/6/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^~~
In file included from /usr/include/c++/6/bits/range_access.h:36:0,
from /usr/include/c++/6/string:51,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:1:
/usr/include/c++/6/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~
/in/foo.cc:56:13: warning: unused variable 'ding' [-Wunused-variable]
int ding;
^~~~
/in/foo.cc:37:15: warning: unused variable 'n' [-Wunused-variable]
int i,j,k,n;
^
/in/foo.cc:38:15: warning: unused variable 'ss' [-Wunused-variable]
char s[9],ss[9];
^~