C:\
is leaving you in the cd command, and in the next line, you are then adding g++
to send to the cd
command.
Note the >
in front of g++
instead of the $
, plus the fact that it says sh: cd: C:g++
In the shell, you need to use Unix style paths and /
as the path separator.