My program is typed right, but the compiler says it wrong and suggestions