You've declared yas as an array of ints. So yas on its own is a pointer to the start of the array. It is not an lvalue, which means you can't change its value. You can do this with char arrays, because cin treats a char * differently from any other pointer type.
If you want the user to input the values of the array, you'll need to cin each element in turn.