/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);//scanf("%s\n",a);
  ^~~~
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:6:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(a);//scanf("%s\n",a);
        ^
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:7:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(b); 
  ^~~~
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:7:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(b); 
        ^
In file included from /in/foo.cc:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:41:25: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d\n",sum,x);
                         ^
/tmp/cctRBVjC.o: In function `main':
foo.cc:(.text.startup+0x49): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 1.125 MiB
#2 Accepted 3ms 1.203 MiB
#3 Wrong Answer 3ms 1.125 MiB
#4 Accepted 2ms 1.23 MiB
#5 Wrong Answer 4ms 1.246 MiB
#6 Wrong Answer 7ms 1.227 MiB
#7 Wrong Answer 8ms 1.25 MiB
#8 Wrong Answer 31ms 1.125 MiB
#9 Wrong Answer 34ms 1.336 MiB
#10 Wrong Answer 25ms 1.219 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2018-03-16 14:36:29
评测时间
2018-03-16 14:36:29
评测机
分数
20
总耗时
124ms
峰值内存
1.336 MiB