Job 17992

Owner
Bogdan Seniuc
Problem
Morse
Contest
MindCoding 2017 Round 1 (Div. 1)
Source
0.89KB
Result
Time Limit Exceeded

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
1Ok0.2469s
2Ok0.2524s
3Ok0.2506s
4Ok0.2620s
5Ok0.2588s
6Ok1.1509s
7Time Limit Exceeded1.7381s
Questions?

Sponsors Gold