Job 19448

Owner
Bogdan Seniuc
Problem
Keyboard
Contest
MindCoding 2017 Round 3 Take Off Labs (Div. 1)
Source
0.91KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:29:45: error: 'strlen' was not declared in this scope
         for (int j = 0; j < strlen(qwerty[i]); j++)
                                             ^
prog.cpp:30:30: warning: array subscript has type 'char' [-Wchar-subscripts]
             keys[qwerty[i][j]] = make_pair(i, j);
                              ^
prog.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < input.size(); i++) {
                       ^
prog.cpp:38:29: warning: array subscript has type 'char' [-Wchar-subscripts]
         point to = keys[next];
                             ^

Questions?

Sponsors Gold