Modify variables between classes

I'm making a dice rolling program that is to roll a dice and then store the value in an array associated with a player.

First I have a class function rolling the dice, and then I try to assign these variables to a class for a player. This however gives me the error message
"object missing in reference to 'computer::rolls' ". Tried change computer::rolls to computer.rolls, no change.