Em chạy k ra kết quả , nó toàn ra lỗi : ‘digit_text’: function must return a value
#include<iostream>
#include<string>
using namespace std;
string digit_text(int number){
switch (number) {
case 1 :
cout << "one";
break;
case 2 :
cout << "two";
break;
case 3 :
cout << "three";
break;
case 4 :
cout << "four";
break;
case 5 :
cout << "five";
break;
default :
cout << "KHONG HOP LE";
}
return number;
}
int main() {
int number;
cin >> number;
digit_text(number);
cout << digit_text;
return 0;
}