Skip to main content
added 86 characters in body; edited tags
Source Link
ChrisG
  • 7.4k
  • 2
  • 17
  • 26

At first, I thought this was because my code was spitting out 419419 when it multiplied 4.24.2 by 100100. I fixed this issue, but I'm still getting the "\ expected output, but not..." It's"\ expected output, but not..."

It's showing me some odd stuff on that error after the "but not""but not". It should say just "Give the customer %d coin(s).""Give the customer %d coin(s)." The error is showing me: "41\n1\n2\n3\n4\nGive...", "1\n0\n0\n0\n1\nGive...", "15\n0\n1\n2\n2\nGive...", "160\n6\n7\n7\n7\nGive...", "2300\n92\n92\n92\n92\nGive...", and "420\n16\n18\n18\n18\nGive..." It

"41\n1\n2\n3\n4\nGive...",
"1\n0\n0\n0\n1\nGive...",
"15\n0\n1\n2\n2\nGive...",
"160\n6\n7\n7\n7\nGive...",
"2300\n92\n92\n92\n92\nGive...", and
"420\n16\n18\n18\n18\nGive..."

It shows this for 0.410.41, 0.010.01, 0.150.15, 1.61.6, 2323, 4.24.2. It does end the phrase but has those weird bits of something at the beginning. It only gives this, though, when I run check50. By itself, the program runs perfectly and gives the right answer.

What might be causing this? Is it a general issue with check50 or is there probably actually something seriously wrong?

Thanks!

At first, I thought this was because my code was spitting out 419 when it multiplied 4.2 by 100. I fixed this issue, but I'm still getting the "\ expected output, but not..." It's showing me some odd stuff on that error after the "but not". It should say just "Give the customer %d coin(s)." The error is showing me: "41\n1\n2\n3\n4\nGive...", "1\n0\n0\n0\n1\nGive...", "15\n0\n1\n2\n2\nGive...", "160\n6\n7\n7\n7\nGive...", "2300\n92\n92\n92\n92\nGive...", and "420\n16\n18\n18\n18\nGive..." It shows this for 0.41, 0.01, 0.15, 1.6, 23, 4.2. It does end the phrase but has those weird bits of something at the beginning. It only gives this, though, when I run check50. By itself, the program runs perfectly and gives the right answer.

What might be causing this? Is it a general issue with check50 or is there probably actually something seriously wrong?

Thanks!

At first, I thought this was because my code was spitting out 419 when it multiplied 4.2 by 100. I fixed this issue, but I'm still getting the "\ expected output, but not..."

It's showing me some odd stuff on that error after the "but not". It should say just "Give the customer %d coin(s)." The error is showing me:

"41\n1\n2\n3\n4\nGive...",
"1\n0\n0\n0\n1\nGive...",
"15\n0\n1\n2\n2\nGive...",
"160\n6\n7\n7\n7\nGive...",
"2300\n92\n92\n92\n92\nGive...", and
"420\n16\n18\n18\n18\nGive..."

It shows this for 0.41, 0.01, 0.15, 1.6, 23, 4.2. It does end the phrase but has those weird bits of something at the beginning. It only gives this, though, when I run check50. By itself, the program runs perfectly and gives the right answer.

What might be causing this? Is it a general issue with check50 or is there probably actually something seriously wrong?

Thanks!

Source Link
Chris
  • 41
  • 5

greedy - odd errors on check50, expected output but

At first, I thought this was because my code was spitting out 419 when it multiplied 4.2 by 100. I fixed this issue, but I'm still getting the "\ expected output, but not..." It's showing me some odd stuff on that error after the "but not". It should say just "Give the customer %d coin(s)." The error is showing me: "41\n1\n2\n3\n4\nGive...", "1\n0\n0\n0\n1\nGive...", "15\n0\n1\n2\n2\nGive...", "160\n6\n7\n7\n7\nGive...", "2300\n92\n92\n92\n92\nGive...", and "420\n16\n18\n18\n18\nGive..." It shows this for 0.41, 0.01, 0.15, 1.6, 23, 4.2. It does end the phrase but has those weird bits of something at the beginning. It only gives this, though, when I run check50. By itself, the program runs perfectly and gives the right answer.

What might be causing this? Is it a general issue with check50 or is there probably actually something seriously wrong?

Thanks!