Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Anagrams WIP
//g++ 5.4.0 #include <iostream> #include <queue> #include <vector> #include <string> #include <algorithm> using namespace std; int main() { priority_queue<char, vector<char>,greater<char>> palabras; long long hash; int pos=0; string entrada, cadena; vector<string> cadenas; while(true){ cin>>entrada; if(entrada.compare("#")==0) break; cadenas.push_back(entrada); } for(auto a: cadenas){ sort(a.begin(), a.end()); cout<<a<<"\n"; } }
run
|
edit
|
history
|
help
0
Stream10
Regression Line
Cuantos dedos
TPSI Primo esercizio
RegexSearch
FindMissingNewt
005#
‘int R::print() const’ cannot be overloaded
rstring
Finding the first digit of a number