Doubt in language selection

Why is the code giving accepted only when we are using c++ 14(clang 8.0) and not giving accepted but instead giving runtime error while using c++14(gcc 8.3) or c++(gcc 8.3).

(I used the same code as in the video.)

hello @rohitmathur.mathur.6

sometime differnet compiler version gives different output for same code .

check all this thread->
link1

link2

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.