/* Create a function that returns the product of all odd * integers in an array. */ int humph(std::vector arr, int pnok = 1) { bool ok = false; for(int i = 0; i < arr.size(); i++) if(arr[i]%2) { pnok *= arr[i]; ok = true; } return ok ?pnok :0; } int oddProduct(std::vector arr) { return humph(arr); std::vector odds; int result = 1; for(int i = 0;i