fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int amountToChange = 0;
  6. int numFives = 0;
  7. int numOnes = 0;
  8.  
  9. amountToChange = 19;
  10. numFives = amountToChange / 5;
  11.  
  12. numOnes = amountToChange - (numFives * 5); //error occurs here
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty