Doubt related to templates


while executing the above code i am getting
missing template arguments before ‘)’ token
39 | for(T node:res){
| ^
why?

hello @dare_devil_007
why r u adding template on vector.
it already support generic programming.

check this -> https://ide.codingblocks.com/s/254541

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