Compiler output
prog.cpp: In function 'long long int STN(std::string, int)':
prog.cpp:23: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:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.length(); i++){
^
prog.cpp:56:23: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(s[a], s[b]);
^
prog.cpp:56:17: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(s[a], s[b]);
^