#include<iostream>
#include<string>
using namespace std;
int main()
{
inline bool isshorter(const string &s1, const string &s2);
string s1, s2;
cin >> s1 >> s2;
if (isshorter(s1, s2))
cout << s1;
else
cout << s2;
system("pause");
return 0;
}
inline bool isshorter(const string &s1, const string &s2) //函数定义放在下面报错
{ //放在int main上面就没问题
return s1.size() < s2.size();
}
狐的传说
SMILET