Changed the loop but still got it wrong. Thanks anon.
Regarding the iostream input buffer, I changed the code to include good(). But the code does not compile, can someone please tell me how to...
Type: Posts; User: K12
Changed the loop but still got it wrong. Thanks anon.
Regarding the iostream input buffer, I changed the code to include good(). But the code does not compile, can someone please tell me how to...
The problem description does not mention how the input should stop. I just assumed a 0 0 input would end it. If you have any experience with questions like this, please tell me how to get it right.
Attempted a fix:
if(i>j)
{
for(i;i>j-1;i--)
{
if (CycleLength(i)>max_cycle)
max_cycle=CycleLength(i);
}
}
Thanks, the image was hilarious.
You can check out the description here:
http://online-judge.uva.es/p/v1/100.html
EDIT: Judges keep on giving a wrong answer for this.
Why? What are the pros and cons?
Alright, I took your advice of indentation and did my best to fix the current code in terms of indentation. Please check it and spot the problem if the indentation...
Salam to Muslims,
Hi there guys,
I need some help with this problem. I have written code and it does work as far as I can tell but one of the online judges does not accept it.
Please suggest...
How do I enable warnings in Dev C++?
Hi there,
I need some help with a program I am writing:
Write a program that will allow the user to enter the results of TEST1 for (Computing Systems and Programming) subject and store them in...