want to make a function to add all value in a vector regardless of type.just not able to find the mistake in this following code. any help would be appreciated!
@James2250 i got that i didn't print the value part but the function still doesn't work. every error is shown in the line where I iterate in the vector(line 9 above). can u see what the mistake is?
also, i didn't know that there is a function already for this but i am making this function as a practice exercise for template. so i need to write this function anyway.