我在 if else 语句中收到以下错误。语法有什么问题?
ass4.cpp:46: 错误: 无法将 'std::string' 转换为 'int' 以返回 ass4.cpp:49: 错误: 预期 '(' 在 'else' 之前</p>
41 if ((type_f == 1) && (type_s == 1))
42 {
43 cout << "11" << endl;
44
45 // 1 1 = iterative, reverse
46 return reverse(str_input);
47 }
48
49 if else((type_f == 1) && (type_s == 2))
50 {
51 cout << "12" << endl;
52
53 return palin_l(str_input);
54 }