Job 19123

Owner
Malina Diaconescu
Problem
Bits
Source
0.82KB
Result
Accepted

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for(int i=0;i<v.size() && ok==0;i++)
                     ^
prog.cpp:34:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for(int i=0;i<v.size();i++)
                     ^
prog.cpp:32:41: warning: 'poz2' may be used uninitialized in this function [-Wmaybe-uninitialized]
        if(poz1<poz2) swap(v[poz1],v[poz2]);
                                         ^
prog.cpp:32:33: warning: 'poz1' may be used uninitialized in this function [-Wmaybe-uninitialized]
        if(poz1<poz2) swap(v[poz1],v[poz2]);
                                 ^

Results

Test numberResultTime
1Ok0.2330s
2Ok0.2342s
3Ok0.2334s
4Ok0.2335s
5Ok0.2348s
6Ok0.2364s
7Ok0.2378s
8Ok0.2463s
9Ok0.2480s
10Ok0.2467s
Questions?

Sponsors Gold