+ 1
How do I fix this error on visual studio code ?
9 Answers
+ 3
Code is fine. Problem is in vs code settings.. Try from this:
https://stackoverflow.com/questions/45583473/include-errors-detected-in-vscode
+ 2
When posting error messages, pls paste the text, not an image. The text is more readable, and also allows for quick copy/paste for searching.
+ 2
if your code run in sololearn then it looks like there is a problem with vscode. My guess is because you not use C disk drive something is wrong with files permission. Try run vscode as administrator
+ 1
Can you show the code?
Save in playground and share link.
+ 1
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\CODING\C++\new.cpp).
cannot open source file "iostream"
https://sololearn.com/compiler-playground/cxQVNk6b0ogQ/#cpp
The code can run in solo learn but not vscode
+ 1
My guess is you either don't have Squiggles or iostream or the include path doesn't have their paths
0
cannot open source file "iostream". Probably you did it wrong.
#include <iostream>