شاید مشکلت این باشه #include <string> using namespace std; بعد کدت رو بنویسی یا std::cin>>str;
#include <string> using namespace std;
std::cin>>str;
قوانین سایت