Job 18358

Owner
Pantea Beniamin
Problem
Morse
Contest
MindCoding 2017 Round 1 (Div. 1)
Source
1.72KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:47:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j<strlen(c); j++)
                          ^
prog.cpp:49:45: warning: array subscript has type 'char' [-Wchar-subscripts]
                 for (int q = 0; q < LIT[c[j]].size(); q++)
                                             ^
prog.cpp:49:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int q = 0; q < LIT[c[j]].size(); q++)
                                   ^
prog.cpp:50:44: warning: array subscript has type 'char' [-Wchar-subscripts]
                     word.push_back(LIT[c[j]][q]);
                                            ^
prog.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < word.size(); j++) {
                           ^
prog.cpp:64:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (j == word.size() - 1)
                   ^

Results

Test numberResultTime
1Wrong answer0.2467s
Questions?

Sponsors Gold