0
Cout the number of occurence of a particular element x in c++ vector??
What is the problem in this code ?? https://code.sololearn.com/cbxa4Z841o22/?ref=app
2 Respostas
+ 2
Nothing is wrong with the code, I've provided default value for the vector and it works fine
https://code.sololearn.com/c4Mmj46I2li0/?ref=app
+ 1
Anuj Khare The code has no problems. Maybe you are referring to warning caused by comparision (in the first loop) between an int (the i var) and unaigned long inte (returned type from size() of vector)