English: I encountered this issue, and with God's help, I did the following to solve the problem:
لقد واجهتني هذه المشكله وبفضل ربنا قمت بالاتي لحل المشكله
Uninstall all extensions related to C++.
(c++) الغاء تثبيت جميع الاضافات المتعلقه بلغه
Delete the .vscode folder.
حذف مجلد .vscode
After that reinstall the extensions and run the code; it will work. This method worked for me. Thanks
وبعدها قم بتثبيت الاضافات مره اخرى وقم بتشغيل الكود سيعمل لقد نجح معي هذا الأمر وشكرا