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 | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | maomao90 | 163 |
2 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | 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.