Job 18412

Owner
Fanel Catalin
Problem
Morse
Contest
MindCoding 2017 Round 1 (Div. 1)
Source
1.14KB
Result
Time Limit Exceeded

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<strlen(tr);j++)
                      ^
prog.cpp:25:38: warning: NULL used in arithmetic [-Wpointer-arith]
                 if(alf[tr[j]-97][h]!=NULL)cr[p++]=alf[tr[j]-97][h];
                                      ^
prog.cpp:40:36: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
                 v[L][j]=cr[j],cr[j]=NULL;
                                    ^
prog.cpp:44:22: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
                 cr[j]=NULL;
                      ^

Results

Test numberResultTime
1Ok0.2453s
2Ok0.2858s
3Ok0.4669s
4Ok0.3028s
5Ok0.2712s
6Time Limit Exceeded1.7912s
Questions?

Sponsors Gold