Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Anagrams WIP
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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"; } }
g++
hola gente hey #
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 1.48 sec, absolute running time: 0.14 sec, cpu time: 0.04 sec, memory peak: 3 Mb, absolute service time: 1,64 sec
edit mode
|
history
|
discussion
ahlo eegnt ehy