1
vote
Accepted
CS 50 Pset 1 cash: non-void function does not return a value
You've created 5 functions that each is required to return an int value, yet there's not a single return statement anywhere. That won't get past the cs50 compilers.
The code needs to be changed to ...
1
vote
Accepted
check50 issue on Problem Set 1: cash
It pays to read this if you missed it. It explains why your program will not compile.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pset1 × 1150mario × 353
greedy × 223
credit × 95
cs50x × 85
check50 × 80
cash × 75
c × 59
error × 36
mario.less × 23
cs50-pset1 × 19
water × 17
hacker1 × 16
water.c × 16
cash.c × 16
credit.c × 15
round × 14
for-loop × 13
pyramid × 13
appliance × 12
cs50-ide × 12
less × 12
loop × 12
pset1-credit × 11
float × 11