'Ui' was not declared in this scope

Thanks.
The question here is how to store the result?