Job 19608

Owner
Valentin Vozian
Problem
Keyboard
Contest
MindCoding 2017 Round 3 Take Off Labs (Div. 1)
Source
0.63KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int back(my, my, int, int)':
prog.cpp:9:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(k >= S.length()) return c;
       ^
prog.cpp:10:15: warning: array subscript has type 'char' [-Wchar-subscripts]
  my p = P[S[k]];
               ^
prog.cpp: In function 'int main()':
prog.cpp:20:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j<K[i].length();j++) P[K[i][j]] = {i+1,j+1};
                        ^
prog.cpp:20:53: warning: array subscript has type 'char' [-Wchar-subscripts]
         for(int j = 0;j<K[i].length();j++) P[K[i][j]] = {i+1,j+1};
                                                     ^

Results

Test numberResultTime
1Ok0.5125s
2Ok0.5141s
3Ok0.5265s
4Wrong answer0.5218s
Questions?

Sponsors Gold