Job 18176

Owner
Banu Denis
Problem
Morse
Contest
MindCoding 2017 Round 1 (Div. 1)
Source
0.80KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:26:17: warning: array subscript has type 'char' [-Wchar-subscripts]
         cin>>c[C];
                 ^
prog.cpp:34:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j=0;j<s.size();j++)
                       ^
prog.cpp:36:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             for (int k=0;k<c[s[j]].size();k++)
                                  ^
prog.cpp:36:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int k=0;k<c[s[j]].size();k++)
                           ^
prog.cpp:37:37: warning: array subscript has type 'char' [-Wchar-subscripts]
                 cuv.push_back(c[s[j]][k]);
                                     ^

Results

Test numberResultTime
1Wrong answer0.2622s
Questions?

Sponsors Gold