Job 19431

Owner
alin sef
Problem
Keyboard
Contest
MindCoding 2017 Round 3 Take Off Labs (Div. 1)
Source
1.95KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:23:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define FORN(a, n) for (int i = a; i < n; ++i)
                                      ^
prog.cpp:82:2: note: in expansion of macro 'FORN'
  FORN(0, s.size()) {
  ^
prog.cpp:83:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   int man1 = manhattan(finger1, v[s[i]]);
                                       ^
prog.cpp:84:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   int man2 = manhattan(finger2, v[s[i]]);
                                       ^
prog.cpp:88:20: warning: array subscript has type 'char' [-Wchar-subscripts]
    finger1 = v[s[i]];
                    ^
prog.cpp:91:20: warning: array subscript has type 'char' [-Wchar-subscripts]
    finger2 = v[s[i]];
                    ^

Results

Test numberResultTime
1Ok0.5225s
2Ok0.4993s
3Ok0.5047s
4Wrong answer0.5155s
Questions?

Sponsors Gold