Main.cc: In function ‘int main()’:
Main.cc:39:28: error: reference to ‘count’ is ambiguous
39 | if(a[i+c][j+d]=='*') count[num]++;
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidates are: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
Main.cc:3:5: note: ‘int count [100]’
3 | int count[100]={0};
| ^~~~~
Main.cc:46:7: error: reference to ‘count’ is ambiguous
46 | sort(count,count+num,cmp);
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidates are: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
Main.cc:3:5: note: ‘int count [100]’
3 | int count[100]={0};
| ^~~~~
Main.cc:46:13: error: reference to ‘count’ is ambiguous
46 | sort(count,count+num,cmp);
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidates are: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
Main.cc:3:5: note: ‘int count [100]’
3 | int count[100]={0};
| ^~~~~
Main.cc:47:8: error: reference to ‘count’ is ambiguous
47 | cout<<count[0];
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidates are: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
Main.cc:3:5: note: ‘int count [100]’
3 | int count[100]={0};
| ^~~~~