When you do left shift of a -ve number on Leetcode it shows run time error as shown in the following screenshot leetcode compiler output
Now For the Same code on GeeksForGeeks IDE, it works well as shown below GFG IDE Output on same code
Same behaviour is observed when i submit the same code on the Code Blocks IDE.My Question is why is this ambiguity in the outputs . Please Help , i am very confused after reading various posts on left shifting in c++ on sof. Detailed Explanation will be Helpful.