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 | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
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.