Job 16262

Owner
Oncescu Costin Andrei
Problem
Permudrome
Contest
MindCoding 2016 Round 4 (Div. 1)
Source
2.17KB
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:26:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     sir[i] -= 'a', ap[sir[i]] ++;
                             ^
prog.cpp:32:11: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
           ^
prog.cpp:32:15: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
               ^
prog.cpp:32:25: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                         ^
prog.cpp:32:29: warning: array subscript has type 'char' [-Wchar-subscripts]
     ap2[c1][c2] = ap2[c2][c1] = 1;
                             ^
/tmp/ccAztPi0.o: In function `main':
prog.cpp:(.text.startup+0x16): warning: the `gets' function is dangerous and should not be used.

Results

Test numberResultTime
1Ok1.0307s
2Wrong answer0.3209s
Questions?

Sponsors Gold