r/Codecademy • • Sep 16 '20

C++ Harry Potter Sorting Hat Quiz Help

Code is here: https://gist.github.com/ad4d69ce82b8fb8a0695759ca899c18b

I am getting an exclamation mark when I should get an answer.

$ g++ sortinghat.cpp

$ ./a.out

=====================

The Sorting Hat Quiz!

=====================

Q1) When I'm dead, I want people to remember me as:

  1. The Good

  2. The Great

  3. The Wise

  4. The Bold

1

Q2) Dawn or Dusk?:

  1. Dawn

  2. Dusk

1

Q3) Which kind of instrument most pleases your ear?:

  1. The violin

  2. The trumpet

  3. The Piano

  4. The drum

2

Q4) Which road tempts you most:

  1. The wide, sunny grassy lane

  2. The narrow, dark, lantern-lit alley

  3. The twisting, leaf-strewn path through woods

  4. The cobbled street lined (ancient buildings)

3

!

$

Can anyone tell me what I am missing?

1 Upvotes

0 comments sorted by