Error numero uno is having ints for a price… cmon bro
2025-10-20 21:43:15
0
caybincaleb :
So your code is saying for any count greater than 0 or equal to 0 multiply it by per item and equate it to 0. Explanation below:
2025-10-02 14:55:37
4
Mippat :
Int count is not initialized with any value so it is null/0 hence when you run the code it skips the if statement and goes straight down to the else statement at the bottom
2025-10-02 10:20:57
42
Syd :
I guess 0 is greater than 1 gang
2025-10-02 03:34:59
463
theverdantvale :
Remove the else statement and just return totalCount always. Should fix the issue even tho that doesn’t make much sense either lmao
2025-10-26 14:51:17
12
Tony :
Surely you replace the “return 0” with just “return total price” 😭 that way you either get the original 0 or the updated value based on ur conditions ( maybe 😭)
2025-10-02 17:34:05
180
Brainrot.sol :
Gonna need to see the full screen to debug
2025-10-02 03:06:20
50
 :
triple pointers got me spinning on my head
2025-10-26 13:29:10
0
Ravenclaw :
By the way what kind of function name is that? Who names a function price?
2025-10-25 10:05:22
0
Kupferdose :
hahaha
2025-10-26 00:15:55
0
Shibfrite :
im curious, what was the whole prototype of the function? can't figure out the third argument
2025-10-26 05:31:49
0
Jens Ingels :
Not want to overengineer it but variable names could be more explicit, keeping it that way this code will be hard to change since you are using an abstraction while the input screams one strategy for calculating the price.
2025-10-27 07:23:54
0
p℮stacas :
that's when you start printing EVERYTHING on the command line
2025-10-26 14:52:26
1
Ridell :
“Is 1 not greater than 0?”🤨
2025-10-04 18:34:02
1
TeeTee | Tech Girly 🤓 :
Debugging about to be a mf 😂
2025-10-04 01:43:33
0
EpicFail of god :
2025-10-11 11:32:42
18
changpatihangma :
Blaming anything atp😭🥀
2025-10-06 21:40:38
0
johny26Us :
return 0 ?!😂
2025-10-24 23:06:38
0
user not needed :
yo just submit to ai atp 😭✌
2025-10-05 19:04:21
0
noone_special :
You should use a debugger, gcc,lldb, or windbgx. I had a lot of these moments and a debugging helps a lot!
2025-10-23 22:17:07
0
s101510 :
bro does realise you're never returning anything but 0 right
2025-10-08 10:18:40
0
Archimedeis :
Questioning basic math is so real. I be wondering if I can't read
2025-10-10 06:34:22
2
To see more videos from user @kazytho_, please go to the Tikwm
homepage.