Job 19075

Owner
Andrei Udriste
Problem
Bits
Source
0.99KB
Result
Accepted

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

Results

Test numberResultTime
1Ok0.2356s
2Ok0.2341s
3Ok0.2337s
4Ok0.2333s
5Ok0.2474s
6Ok0.2448s
7Ok0.2433s
8Ok0.2678s
9Ok0.2872s
10Ok0.3010s
Questions?

Sponsors Gold