#include <string>
#include <iostream>
using namespace std;
int main()
{
string s;
getline(cin, s);
for (int i = 0; i<s.length(); i++) s.erase(i, 1);
cout << s << endl;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <string>
#include <iostream>
using namespace std;
int main()
{
string s;
getline(cin, s);
for (int i = 0; i<s.length(); i++) s.erase(i, 1);
cout << s << endl;
return 0;
}