why my terminal shows this and not compile when I am using code Runner extension?

17 Views Asked by At

I istalled code runner and worked for a while. Now its showing this error. if i run my code normally(g++ demo.cpp) its working. I cant use that extension now. its showing

At line:1 char:32
+ cd "c:\Users\mhdsh\cpp files\" && g++ demo.cpp -o demo && "c:\Users\m ...
+                                ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:56
+ cd "c:\Users\mhdsh\cpp files\" && g++ demo.cpp -o demo && "c:\Users\m ...
+                                                        ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:59
+ ... pp files\" && g++ demo.cpp -o demo && "c:\Users\mhdsh\cpp files\"demo
+                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expressions are only allowed as the first element of a pipeline.
At line:1 char:86
+ ... pp files\" && g++ demo.cpp -o demo && "c:\Users\mhdsh\cpp files\"demo
+                                                                      ~~~~
Unexpected token 'demo' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidEndOfLine
0

There are 0 best solutions below