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

Why Runtime Error (Access Violation)??
Posted by Labib Bin Mohtaram 5 Feb 2019 08:01
#include<stdio.h>
#include<math.h>
int main()
{
    unsigned long long int a[100005],i=0;
    double x;
    while(scanf("%llu", &a[i])!=EOF)
    {
        i++;
    }
    int j;
    for(j=i-1;j>=0;j--)
    {
        x=sqrt(a[j]);
        printf("%0.4lf\n", x);
    }
    return 0;
}