def str_sqare(s_in): return ' '.join(int(x)*int(x) for x in s_in.split())
QString str_square(const QString &s_in){ QTextStream ts(&s_in); QString s; QTextStream ts2(&s); double d; while (!ts.atEnd()) { ts >> d; s << d*d << " "; } return s;}
struct test_t { test_t() : {cout<<"test_t"<<endl;} ~test_t() {cout<<"~test_t"<<endl;}};int main() { return sizeof test_t(666);}//вывод~test_t
QString str_square(const QString &s_in) { QStringList tmp; foreach (QString str, s_in.trimmed().split(QRegExp("\\s+"))) { int i = str.toInt(); tmp.push_back(QString::number(i * i)); } return tmp.join(" ");}