/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void readdata()':
/in/foo.cc:28:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   for(i=1;i<=m;i++)gets(name[i]),ln[i]=strlen(name[i]);
                    ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:28:32: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   for(i=1;i<=m;i++)gets(name[i]),ln[i]=strlen(name[i]);
                                ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:33:7: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
       gets(s),len=strlen(s);
       ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:33:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
       gets(s),len=strlen(s);
             ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc: In function 'int get(int, int)':
/in/foo.cc:99:11: warning: unused variable 'k' [-Wunused-variable]
   int i,j,k,sum=0;
           ^
/in/foo.cc: In function 'void work()':
/in/foo.cc:125:11: warning: unused variable 'k' [-Wunused-variable]
   int i,j,k,s1,s2,ans=0;
           ^
/tmp/ccTD70cS.o: In function `readdata()':
foo.cc:(.text+0x54): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 3ms 348.0 KiB
#2 Accepted 2ms 376.0 KiB
#3 Accepted 2ms 380.0 KiB
#4 Accepted 2ms 368.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 1ms 260.0 KiB
#8 Accepted 1ms 380.0 KiB
#9 Accepted 3ms 368.0 KiB
#10 Accepted 3ms 368.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2018-09-26 18:11:07
评测时间
2018-09-26 18:11:07
评测机
分数
100
总耗时
27ms
峰值内存
384.0 KiB