+ 1

How do I fix this error on visual studio code ?

https://www.sololearn.com/post/1717873/?ref=app

29th Nov 2022, 2:02 PM
Noobmaster
Noobmaster - avatar
8 Answers
+ 3
Code is fine. Problem is in vs code settings.. Try from this: https://stackoverflow.com/questions/45583473/include-errors-detected-in-vscode
30th Nov 2022, 11:21 AM
Jayakrishna 🇮🇳
Jayakrishna 🇮🇳 - avatar
+ 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.
30th Nov 2022, 2:54 AM
Emerson Prado
Emerson Prado - avatar
+ 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
30th Nov 2022, 9:01 AM
Giannis
Giannis - avatar
+ 1
Can you show the code? Save in playground and share link.
29th Nov 2022, 2:27 PM
Jayakrishna 🇮🇳
Jayakrishna 🇮🇳 - avatar
+ 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
30th Nov 2022, 5:29 AM
Noobmaster
Noobmaster - avatar
30th Nov 2022, 8:10 AM
Noobmaster
Noobmaster - avatar
+ 1
My guess is you either don't have Squiggles or iostream or the include path doesn't have their paths
30th Nov 2022, 10:03 AM
Emerson Prado
Emerson Prado - avatar
0
cannot open source file "iostream". Probably you did it wrong. #include <iostream>
30th Nov 2022, 12:35 AM
Giannis
Giannis - avatar