+ 1

Why this code don't work

This code contains funtions for resolver a simple mathematical problem, but when the code runs give this error: timeout: the monitored command dumped core ./Playground/runner.sh: line 110: 12 Floating point exceptiontimeout "$runtime" "$output" - < " https://sololearn.com/compiler-playground/cP66Ij7qwd3q/?ref=app

3rd Jan 2025, 5:16 PM
Eder Prin
Eder Prin - avatar
15 Réponses
+ 5
your code requires integers as input. remove the "," from the input.
3rd Jan 2025, 7:17 PM
Lisa
Lisa - avatar
+ 2
What is inf?
3rd Jan 2025, 7:58 PM
Eder Prin
Eder Prin - avatar
+ 2
inf is for infinite. it may also occur when you do a mathematical operation that is not defined, like dividing by 0
3rd Jan 2025, 8:00 PM
Lisa
Lisa - avatar
+ 2
Oke jonathan you just joined 10 minutes ago ... nobody would expect you to understand.
4th Jan 2025, 5:06 AM
BroFar
BroFar - avatar
+ 1
Pau attention to the instruction in the pop-up window: multiple inputs need to separate by line breaks. hence you need to enter onput like 4 2 4 2 4 2
3rd Jan 2025, 6:25 PM
Lisa
Lisa - avatar
+ 1
This is the onput 3 4 ,6 ,9 5 6
3rd Jan 2025, 7:15 PM
Eder Prin
Eder Prin - avatar
+ 1
Thank You
3rd Jan 2025, 7:57 PM
Eder Prin
Eder Prin - avatar
+ 1
Thank You
3rd Jan 2025, 8:11 PM
Eder Prin
Eder Prin - avatar
+ 1
What is nan
3rd Jan 2025, 8:27 PM
Eder Prin
Eder Prin - avatar
+ 1
Eder Prin that means Not A Number
3rd Jan 2025, 8:29 PM
BroFar
BroFar - avatar
+ 1
Thank You
3rd Jan 2025, 8:30 PM
Eder Prin
Eder Prin - avatar
+ 1
You're welcome
3rd Jan 2025, 8:31 PM
BroFar
BroFar - avatar
0
Please I don't really understand all this things
4th Jan 2025, 5:03 AM
Oke jonathan
Oke jonathan - avatar
0
Your code had to receive input 3 times ( each time needs 2 variables). So that, when running code, you should be input these with 3 pairs of numbers separately with space and linefeed for each pair corespondent For example 5 4 ( for m()) 4 3 (for (i()) 8 4 (for h()) hope to help you
4th Jan 2025, 9:17 AM
Ueda
0
It's working fine bro if given the right inputs in right order...
5th Jan 2025, 6:03 PM
Lakshya Mittal
Lakshya Mittal - avatar