SOLVED Please help: Pins are not functioning!

Why the const in the statement void output_result(const long result) {

That doesn't look right. And calling two different variable the same name 'result' is misleading.

Lefty