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

Crash(access violation) , C
Posted by Nikita 23 Dec 2012 04:08
#include<stdio.h>
#include <math.h>
int i=0;
unsigned long long a[100];
int main()
{
  int b;
  while(scanf("%llu",&a[i])!=EOF)
  {
  i++;
 }
  for(b=i-1;b>=0;b--)
  {
          printf("%.4lf\n",sqrt((double)a[b]));
  }
return 0;
}
help please
Re: Crash(access violation) , C
Posted by [TH0421] 1112238 23 Jan 2013 12:40
because u used static array!