char rock(int num)

{

if (num == 1)

return "바위";

if (num == 2)

return "가위";

if (num == 3)

return "보";

}


이렇게 하는거 맞나요?

왜 오류가 날까요?