Job 19180

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.2327s
2Ok0.2340s
3Ok0.2334s
4Ok0.2356s
5Ok0.2340s
6Ok0.2391s
7Ok0.2436s
8Ok0.2620s
9Ok0.2711s
10Ok0.2849s
Questions?

Sponsors Gold