online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <cinttypes> #include <string> #include <algorithm> #include <iostream> using namespace std; uint64_t descendingOrder(uint64_t a) { string str = to_string(a); sort(str.begin(),str.end(),[](unsigned char a , unsigned char b) { return a>b;}); cout<<"sorted string:" <<str<<endl; cout<<"value :"<<strtol(str.c_str(),nullptr,10)<<endl; return strtol(str.c_str(),nullptr,10); } int main() { descendingOrder(9223372036854775807L); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue