Блог пользователя hubert322

Автор hubert322, история, 10 лет назад, По-английски

Can someone explain this runtime error? Here's my code: http://ideone.com/pCBf77 Thanks!

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
10 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +19 Проголосовать: не нравится
  • Step 1 — repeat the problem on your computer.
  • Step 2 — learn to debug your code (using any method that doesn't involve asking someone to do it in your place).
  • Step 3 — find the bug in your code. It is a very simple mistake and you should be able to do it.

If you have problems with steps 1-2 ask a question.

»
10 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Your program crashes at test where n = 1. Also, there is no need to use setw. 20105764