Hunt 1: Typos
How to hunt a bug
- Your pet wrote a pseudocode program, but it is broken. You are the bug hunter!
- Step 1: press Run and read the red message.
- Step 2: find the line number in the message.
- Step 3: fix the line, then press Check.
Words for these hunts
| Word | Meaning |
|---|---|
| bug | a mistake in a program |
| error message | a note about what went wrong, and where |
| debug | find and fix bugs |
Read the message
DECLARE Pet : STRING
Pet ← "Kit"
OUTPUT Pet
- This program works. Break it on purpose: delete the last quote and press Run. Read the message, then fix it again.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Your pet is stuck! This program should output Hello, Kit. Find the bug and fix it.
Нажмите Запустить, чтобы увидеть результат здесь.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Your pet is stuck! This program should output Hi. Find the bug and fix it.
Нажмите Запустить, чтобы увидеть результат здесь.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Your pet is stuck! This program should output Kit. Find the bug and fix it.
Нажмите Запустить, чтобы увидеть результат здесь.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Your pet is stuck! This program should output 5. Find the bug and fix it.
Нажмите Запустить, чтобы увидеть результат здесь.
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
Your pet is stuck! This program should output Full!. Find the bug and fix it.
Нажмите Запустить, чтобы увидеть результат здесь.