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

Compilation error
Posted by Filip 12 Oct 2007 14:32
Can you please tell my why do I keep getting CE when I submit this?

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int a;
    while(cin>>a){
                  float b;
                  b=sqrt(a);
                  printf("%.4f\n",b);
                  }
    return 0;
}

When I compile it on my computer there are no errors. I'we tested and when I remove b=sqrt(a); it seems to compile. What's the problem with that?
Thanks in advice.
Re: Compilation error
Posted by Filip 12 Oct 2007 14:58
nevermind that, found my mistake
I did'nt read carefully :(

Edited by author 12.10.2007 15:00