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 1068. Sum

Why i have compilation error?
Posted by Narek 30 Nov 2008 13:14
#include<iostream.h>
#include<math.h>
main()
{
    int n,i,s=0;
    cin>>n;
    for(i=2;i<=fabs(n);i++)
        s+=i;
    cout<<((fabs(n)/n)*s);
    return 0;
}
Re: Why i have compilation error?
Posted by Roshka 30 Nov 2008 13:37
plz write  " INT MAIN() "