0

I am having an issue with the CS50 IDE.

I'm trying to run greedy.c from pset1 and the output is always my input as a float instead of the number of coins as it should be. I thought the issue was my code, but after running the debugger several times I am pretty sure that that's not it. I also tried running someone else's solution to make sure, and now it looks like that isn't working. My prompt is "Hi! How much change is owed?" and the one I was testing is "How much change is owed?" When I save and run this new code, though, I'm still getting my original prompt.

2
  • Can you edit your question and post the relevant code? All we would be doing here is guessing.
    – Cliff B
    Commented May 27, 2017 at 21:26
  • Have you used make program? If you didn't use make or clang, your output folder is not changed. You can save your source code, but it is not compiled, and with C you need to compile the file before running it. Commented May 28, 2017 at 8:15

1 Answer 1

0

You can do various things to try and fix this.

  • You can restart your terminal/computer.
  • You can use update50 to make sure your IDE is updated.

  • You can make or use clang to compile your program.

  • You can copy/paste your code into another coding site/directory to make sure that it is indeed working properly.

I hope this helps.

You must log in to answer this question.

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