Job 19561

Owner
Bodea Nicu
Problem
Keyboard
Contest
MindCoding 2017 Round 3 Take Off Labs (Div. 1)
Source
1.34KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int countDistance(char, char)':
prog.cpp:37:43: warning: 'poz2y' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return abs(poz1x - poz2x) + abs(poz1y - poz2y);
                                           ^
prog.cpp:37:22: warning: 'poz2x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return abs(poz1x - poz2x) + abs(poz1y - poz2y);
                      ^
prog.cpp:37:43: warning: 'poz1y' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return abs(poz1x - poz2x) + abs(poz1y - poz2y);
                                           ^
prog.cpp:37:22: warning: 'poz1x' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return abs(poz1x - poz2x) + abs(poz1y - poz2y);
                      ^

Results

Test numberResultTime
1Ok0.5512s
2Ok0.5443s
3Ok0.5256s
4Wrong answer0.4703s
Questions?

Sponsors Gold