MY CURRENT CODE
#include<windows.h>
#include<fstream>
#include<direct.h>
#include<conio.h>
#include<sys/stat.h>
#include<filesystem>
int main(){
int choice;
std::string folder_n;
std::cin >> choice;
if(choice == 2){
std::cout << "Enter folder name" << std::endl;
std::cin >> folder_n;
filesystem::create_directory(folder_n);
std::cout << "created folder named " << folder_n << std::endl ;
}
return 0;
}
MY PROBLEM --> error: 'filesystem' has not been declared can anybody tell why is this error coming and how to fix it
Note : 1. filesystem is included in my c++ version because intellisense is showing filesystem
2. I am using MinGw
3. My MinGW version is 9.2.0```