Ver código fonte

Update 'E.cpp'

webturing 5 anos atrás
pai
commit
ba18e5bd08
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      E.cpp

+ 1 - 1
E.cpp

@@ -5,7 +5,7 @@ using namespace std;
 
 int main() {
     string s;
-    while (cin >> s) {
+    while (getline(cin, s)) {
         sort(s.begin(), s.end());
         cout << s << endl;
     }