Significance of this error

what does this error “/bin/run.sh: line 4: 17 Bus error (core dumped) ./exe” means!

Kind of Run time error.
you might be allocating infinite memory

but this code is running fine in my terminal

Hey, it is possible that your code might work fine for some input and may give error for some other input.
Like if you have use division and some input have 0 as divisor then it will give error for that input only.