I am using VSCode and the code compiles just fine with the .run extension but the C/C++ extension is throwing me this error and underlining #include <iostream>
as an error. And yes I have MinGW installed in my system.
Furthermore, I get the same error on visual studio community 2019, it does not execute there at all.
System: Windows 10 Version 10.0.19042 Build 19042
VSCode Version: 1.54.1
gcc version: 8.1.0
Visual Studio Community Version: 16.8.5 (Just used it to check if the problem was due to VSCode or if it was a systematic error)
Extension Showing the error: C/C++ for Visual Studio Code v1.2.2
The extension I use to run the code: Code Runner v0.11.3