/ 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:44:25: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d\n",sum,x);
                         ^
/tmp/ccUcOSSi.o: In function `main':
foo.cc:(.text.startup+0x4b): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 1.219 MiB
#2 Accepted 5ms 1.133 MiB
#3 Wrong Answer 5ms 1.23 MiB
#4 Accepted 4ms 1.25 MiB
#5 Wrong Answer 4ms 1.375 MiB
#6 Wrong Answer 5ms 1.125 MiB
#7 Wrong Answer 5ms 1.223 MiB
#8 Wrong Answer 17ms 1.25 MiB
#9 Wrong Answer 15ms 1.215 MiB
#10 Wrong Answer 15ms 1.25 MiB

信息

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