There is an ambiguity between
::count. It appears that the implementation has gratuitously included
a. Not dumping
using namespace std; at file scope
or b. Using an explicit scope resolution
for( int i=0 ; i<= ::count ; ++i )
or c. Renaming the variable
count to something else.
C. is simpliest.
d. limiting the scope
bool is_used(int used /*array*/, int count /*size*/, int num /*value*/);
Last edited on