Hi
I tried to solve a problem by this code: 10907824
but when i run it in my computer i face with a terrible voice that can't stop it and lots of this outputs:
What's wrong?
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Hi
I tried to solve a problem by this code: 10907824
but when i run it in my computer i face with a terrible voice that can't stop it and lots of this outputs:
What's wrong?
Name |
---|
wrong operating system
Can you explain more?
Looks like a stupid joke about "Windows must die, use Linux".
Looks like I hurt feelings of Windows believers
Looks like you raise holy war and insult people instead of answering a very specific question and helping people. I'm stopping at this message.
for(int j=0;i<2*n-1;j++)
Bug. You must use j
Oh...
tnx
Looks like you haven't ran your code until you wrote full solution. Very bad idea.
You may use code binary search to find the error: comment out half of the code and see if it still fails. Of course, comment from last lines to first, so commenting won't affect execution.
This 'weird voice' is actually your program printing the bell character to the console. Lots of output means that there is either null terminator missing or damaged for some string (if you print strings) or you wrote output loops wrong.
Your case is the second one:
for(int j=0;i<2*n-1;j++)
— that's the error.Helpful...
I will use your advices
tnx
this site can be useful for you.