while executing the above code i am getting
missing template arguments before ‘)’ token
39 | for(T node:res){
| ^
why?
Doubt related to templates
the code which you have send is not showing the elements in result vector
check ur algorithm then ,now there is no syntax issue so probably issue is with the logic
1 Like