+ 3

What is the issue?

Why the code in case 1 is good out of the switch but Doesn't work (the error is "segmetion default") in the switch case 1??? https://code.sololearn.com/cJ0F2iM8KKvl/?ref=app

11th Jul 2022, 3:03 AM
Marco Cárdenas
Marco Cárdenas - avatar
4 Antworten
0
You are getting input in a loop. That's probably why you get the timeout error. While waiting, SoloLearn's maximum execution limit exceeded. SoloLearn doesn't have an interactive shell. It just runs the code and returns the output.
11th Jul 2022, 7:06 AM
Mustafa A
Mustafa A - avatar
0
I tried it in Visual Studio 🙂
11th Jul 2022, 12:41 PM
Marco Cárdenas
Marco Cárdenas - avatar
0
Marco Cárdenas Then share the error message from the local compiler.
11th Jul 2022, 1:07 PM
Mustafa A
Mustafa A - avatar
0
Mustafa A It doesn't show any Error, Compiles good, and after entering all data it just stop without any Error message
11th Jul 2022, 3:10 PM
Marco Cárdenas
Marco Cárdenas - avatar