Correct solution but segmentation error comes

Describe your bug

after submitting code giving SIGSEGV error segmentation error, then I did checked correct solution which is same as mine … something wrong is here in c intermediate level. problem is ’ How to accept multiple integers on separate lines’


Additional info

On line 8, you have three %d instead of 2.

1 Like

Bro, In line 8 you have used 3 format specifiers “%d” instead of 2
similarly in line 10 you have used only 3 “%d” instead of 4
try to correct them.

1 Like