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

compilation error ??? can anyone help me?
Posted by dileepkumar 7 May 2007 17:59
[code deleted]

Edited by moderator 09.05.2007 16:04
Re: compilation error ??? can anyone help me?
Posted by CHIDEMYAN SERGEY 7 May 2007 18:28
At first Don't use longlongint~~!!
Int is enough!!!
at second you have mistakes in for(i=1;i<=n;i++)
you must use ; instead of ,
and at last write
for(i=1;i>=n;i--) instead of for(i=1,i<=n,i--)


[code deleted]

Edited by moderator 09.05.2007 16:05
Re: compilation error ??? can anyone help me?
Posted by Romko [Lviv NU] 7 May 2007 23:36
Hehe, maybe for(i=n;i>=1;i--) instead of for(i=1,i>=n,i--)?
Re: compilation error ??? can anyone help me?
Posted by CHIDEMYAN SERGEY 8 May 2007 19:26
NO,when n<=0

[code deleted]

Edited by moderator 09.05.2007 16:05