Job 17975

Owner
Bogdan Seniuc
Problem
Morse
Contest
MindCoding 2017 Round 1 (Div. 1)
Source
0.87KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:15:21: warning: array subscript has type 'char' [-Wchar-subscripts]
         cin >> map[c];
                     ^
prog.cpp:22:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < word.size(); j++)
                           ^
prog.cpp:23:36: warning: array subscript has type 'char' [-Wchar-subscripts]
             words[i] += map[word[j]];
                                    ^

Results

Test numberResultTime
1Wrong answer0.2456s
Questions?

Sponsors Gold