Job 16297

Owner
Oncescu Costin Andrei
Problem
Permudrome
Contest
MindCoding 2016 Round 4 (Div. 1)
Source
2.21KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:24:1: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
 gets (sir + 1), N = strlen (sir + 1), mod = 666013;
 ^
prog.cpp:24:14: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
 gets (sir + 1), N = strlen (sir + 1), mod = 666013;
              ^
prog.cpp:31:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     sir[i] -= 'a', ap[sir[i]] ++;
                             ^
prog.cpp:37:11: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
           ^
prog.cpp:37:15: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
               ^
prog.cpp:37:25: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                         ^
prog.cpp:37:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                             ^
/tmp/ccHefj30.o: In function `main':
prog.cpp:(.text.startup+0x16): warning: the `gets' function is dangerous and should not be used.

Results

Test numberResultTime
1Ok1.3184s
2Wrong answer0.5931s
Questions?

Sponsors Gold