ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

can you help??
Posted by bottles 3 Aug 2007 08:16
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
    double ssqrt[4370],n;
    int i=0;
    while(cin>>n) {
    ssqrt[i]=sqrt(n);
    i++;
    }
    for(i-=1;i>=0;i--)
    printf("%.4f\n",ssqrt[i]);
    return 0;
}
Re: can you help??
Posted by TimoX 8 Aug 2007 02:06
Why 4370?
;)
And how I see, you have "Crash (access violation)".
It's problem of sizes.
I thing you must thing in this way.

Good Luck!