Job 16617

Owner
Yury Pisarchyk
Problem
printf
Source
1.06KB
Result
Accepted

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:9:19: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
   scanf("%d",&n); gets(st);
                   ^
prog.cpp:9:26: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
   scanf("%d",&n); gets(st);
                          ^
prog.cpp:11:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
     gets(st); s=t="";
     ^
prog.cpp:11:12: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
     gets(st); s=t="";
            ^
prog.cpp:17:3: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
   gets(st); s="";
   ^
prog.cpp:17:10: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
   gets(st); s="";
          ^
/tmp/ccjVf8lA.o: In function `main':
prog.cpp:(.text.startup+0x22): warning: the `gets' function is dangerous and should not be used.

Results

Test numberResultTime
1Ok0.2580s
2Ok0.2589s
3Ok0.2567s
4Ok0.2579s
Questions?

Sponsors Gold