Update main.cpp

iResult already presented in scope, rename it to _iResult!