Code link:-
Where am I going wrong?
Code link:-
Where am I going wrong?
Hey @div_yanshu07 ,
The problem is all because of the second line here:
#include <bits/stdc++.h>
using namespace std;
The line using namespace std brings all the names from <bits/stdc++.h> which also has a function called count , and in your code, you’ve declared a variable count . Hence the ambiguous error .
Hope it clears your doubt
Happy coding 