Job 19460

Owner
Bogdan Seniuc
Problem
Keyboard
Contest
MindCoding 2017 Round 3 Take Off Labs (Div. 1)
Source
1.15KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:31:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < strlen(qwerty[i]); j++) {
                           ^
prog.cpp:32:30: warning: array subscript has type 'char' [-Wchar-subscripts]
             keys[qwerty[i][j]] = make_pair(i, j);
                              ^
prog.cpp:33:28: warning: array subscript has type 'char' [-Wchar-subscripts]
             ri[qwerty[i][j]] = j >= (strlen(qwerty[i]) / 2);
                            ^
prog.cpp:33:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ri[qwerty[i][j]] = j >= (strlen(qwerty[i]) / 2);
                                  ^
prog.cpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < input.size(); i++) {
                       ^
prog.cpp:43:29: warning: array subscript has type 'char' [-Wchar-subscripts]
         point to = keys[next];
                             ^
prog.cpp:52:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             if (ri[next])
                        ^

Results

Test numberResultTime
1Ok0.5146s
2Ok0.5248s
3Ok0.5106s
4Wrong answer0.4839s
Questions?

Sponsors Gold