@kazytho_: Hate when this happens #coding #java #college #codinglife #compsci

kazeytho_
kazeytho_
Open In TikTok:
Region: US
Thursday 02 October 2025 03:00:49 GMT
170725
9043
70
359

Music

Download

Comments

ifwtodi
Gol D Locs :
“Why are you returning 0” bro you TOLD it to😭😭😭
2025-10-03 02:50:53
1475
sig_natures
Signatures :
ai is CERTAINLY replacing bro😭
2025-10-02 16:51:41
747
big_prussia
Glory to Big Prussia :
holy nesting
2025-10-26 23:23:28
7
trtreterter
trtreterter :
Error numero uno is having ints for a price… cmon bro
2025-10-20 21:43:15
0
caybincaleb
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
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
blackguy556
Syd :
I guess 0 is greater than 1 gang
2025-10-02 03:34:59
463
theverdantvale
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
t0ny.9_
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
Brainrot.sol :
Gonna need to see the full screen to debug
2025-10-02 03:06:20
50
javalangstring
 :
triple pointers got me spinning on my head
2025-10-26 13:29:10
0
ravenclaw17
Ravenclaw :
By the way what kind of function name is that? Who names a function price?
2025-10-25 10:05:22
0
kupferdose
Kupferdose :
hahaha
2025-10-26 00:15:55
0
shibfrite
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
jensingels
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
pestacas
p℮stacas :
that's when you start printing EVERYTHING on the command line
2025-10-26 14:52:26
1
nbattle_
Ridell :
“Is 1 not greater than 0?”🤨
2025-10-04 18:34:02
1
teeteetech
TeeTee | Tech Girly 🤓 :
Debugging about to be a mf 😂
2025-10-04 01:43:33
0
epicfailofgod
EpicFail of god :
2025-10-11 11:32:42
18
changpatihangma
changpatihangma :
Blaming anything atp😭🥀
2025-10-06 21:40:38
0
johny26us
johny26Us :
return 0 ?!😂
2025-10-24 23:06:38
0
user.not.needed6
user not needed :
yo just submit to ai atp 😭✌
2025-10-05 19:04:21
0
noone_special145
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
s101510 :
bro does realise you're never returning anything but 0 right
2025-10-08 10:18:40
0
alzheimersthegreat
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.

Other Videos


About