/in/foo.cc: In function 'int main()':
/in/foo.cc:13:11: error: reference to 'count' is ambiguous
while(count!=n)
^~~~~
/in/foo.cc:3:13: note: candidates are: long long int count
long long n,count=0,i=0,t;
^~~~~
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_algo.h:3961:5: note: template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
^~~~~
/in/foo.cc:19:13: error: reference to 'count' is ambiguous
count++;
^~~~~
/in/foo.cc:3:13: note: candidates are: long long int count
long long n,count=0,i=0,t;
^~~~~
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_algo.h:3961:5: note: template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
^~~~~
/in/foo.cc:23:8: error: reference to 'count' is ambiguous
if(count==n)
^~~~~
/in/foo.cc:3:13: note: candidates are: long long int count
long long n,count=0,i=0,t;
^~~~~
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_algo.h:3961:5: note: template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
^~~~~