Something goind wrong in the frequency function and i don't know how to debug with these many files of the programm to allocate the problem. i've made a seprate test file to just test the frequency function and it works well. So please could you tell me how to debug and what may cause this problem?

here is the results of Check50: https://cs50.me/checks/3a18fe70c7dbbc42ac234e39cb1ea6993e6e501e

Here is the code:

[code hidden]

1 Answer 1

int frequency(string note)
    note = get_string();

You are being passed note as an argument to the function. Why are you then asking the user to give you a note to override the one you've already been given? This is why check50 is timing out, because the program is not meant to be prompting for a note.

  • oh, i see. thanks a lot
    – Sengo
    Mar 18, 2018 at 10:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .