I\'m new to programming and have been happily working my way through C++ A Beginner\'s Guide (which I\'m thoroughly enjoying!). However, I\'ve come across a bit of
I'm guessing this is close to the error you get:
In function 'int main()':
Line 13: error: reference to 'count' is ambiguous
compilation terminated due to -Wfatal-errors.
Using the namespace std
makes count
refer to std::count
which is an algorithm in the standard library.
http://www.cplusplus.com/reference/algorithm/count/