how to fix gcc cannot recognize error
gcc error can be fixed by following given steps in windows ;
install gcc
if it is giving recognization error in vs code or any code editor
Open gcc file location
copy location of gcc
Than open This Pc or My computer in windows
Than right click mouse button
Goto properties
On left side of panel(properities) there is option of advaced settings
Click on advanced settings
And than click on advance at top
Click environment variables
And than go to System variables
Click on Path in system variable
There opens a new small tab (in which there is written Edit enviroment variables at top)
Click new (written on right side ) and paste the location that you copied first
if yours windows version is old than it will open a path for that put ;%(enter copied adress)%
Press ok if you have followed following steps
IF problem is still not fixed reinstall gcc