here is a type mismatch: const int ERR = -1; bool result