Well s can be one thing, not two. You have declare it as an int AND as an array of chars. This can not be done.