Job 19179

Owner
Andrei Udriste
Problem
Bits
Source
1.09KB
Result
Accepted

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]);
                          ^

Results

Test numberResultTime
1Ok0.2317s
2Ok0.2318s
3Ok0.2323s
4Ok0.2322s
5Ok0.2333s
6Ok0.2379s
7Ok0.2409s
8Ok0.2604s
9Ok0.2681s
10Ok0.2827s
Questions?

Sponsors Gold