Timus OJ 1001 Reverse Root 可不可以用栈来解决

一直WA, 不知道什么问题


#include <iostream>
#include <stack>
#include <cmath>
using namespace std;

int main()
{
    stack<double> root;
    double input;
    
    while(cin >> input)
    {
        root.push(sqrt(input));
    }
    
    while(!root.empty())
    {
        cout << root.top() << endl;
        root.pop();
    }
    
    return 0;
}

题目是啥呢?