.. (לתיקייה המכילה) | ||
Q: The input matches the output on my machine, but the test fails on the self-test website. What should I do? | |
Please check again the diffmerge output. If there is even a small difference (such as an additional new line) the test will fail. |
Q: In Question 1, is it possible that only one price is 0 and the other is positive price? | |
Yes, in the price is calculated as 0. |
Q: Do I need to check the scanf return value? | |
In this homeworks, you can assume that the input type will be the same as expected. |
Q: There are some difference between the examples in the PDF and in the expected .txt files. What is the correct version? | |
As in Assignment#0, ONLY the .txt file are correct. The examples in the PDF are only for illustration. you should check your output by using diffmerge on the .txt files (using the input files as well). |
Q: In Q1, can the exchange rate be 0? | |
A : No, exchange rate must be positive. |
Q: The input matches the output on my machine, but the test fails on the self-test website. What should I do? | |
A: This can happen when your code is not portable. Most of you check your solution on Windows, while the self-test website is running Linux. Common solutions are to check if you are using uninitialized variables or using getchar instead of scanf( " %c") |