Job 16342

Owner
Tetiana Romanova
Problem
Registration Plates
Contest
MindCoding 2016 Round 4 (Div. 1)
Source
1.70KB
Result
Accepted

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:43:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
     gets(buf);
     ^
prog.cpp:43:13: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
     gets(buf);
             ^
prog.cpp:47:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
         gets(buf);
         ^
prog.cpp:47:17: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
         gets(buf);
                 ^
prog.cpp:60:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         ok &= (strlen(buf) == sum + 2);
                            ^
/tmp/ccEMpmXe.o: In function `main':
prog.cpp:(.text.startup+0x2e): warning: the `gets' function is dangerous and should not be used.

Results

Test numberResultTime
1Ok0.2557s
Questions?

Sponsors Gold