Compiler output
prog.cpp: In function 'long long int toNumber(std::string)':
prog.cpp:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < number.length(); i++){
^
prog.cpp: In function 'int main()':
prog.cpp:42:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < S.length(); i++){
^
prog.cpp:55:37: warning: 'index1' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(S[index0], S[index1]);
^
prog.cpp:55:26: warning: 'index0' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(S[index0], S[index1]);
^