enter image description here

hello, i've tried "112.00" in my solution and cs50's solution and the result is same "invalid shares" but i don't know why this error occur. i'm really stuck any help please

  • From the spec: "Be aware that check50 will test your entire program as a whole. If you run it before completing all required functions, it may report errors on functions that are actually correct but depend on other functions.". In this case, the buy test depends in index "which stocks the user owns, the numbers of shares owned, the current price of each stock, and the total value of each holding (i.e., shares times price)" Aug 25 '21 at 18:37
  • thanks, the error occur because i forget to redirect to index page Aug 26 '21 at 5:22

You must log in to answer this question.

Browse other questions tagged .