Array with Make Heap if the array like this: int ia[3]={1,2,3}; so,the vector like this. vector <int > val(ia,ia+sizeof...
The variable 'factorial' is being used without being initialized.[output]factorial *= --n;[/output] the ide dont know " *=--" you can try this: [output] while(n>1) ...