/ 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/ccFFEuHO.o: In function `main':
foo.cc:(.text.startup+0x4e): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 1.207 MiB
#2 Accepted 4ms 1.129 MiB
#3 Wrong Answer 3ms 1.219 MiB
#4 Accepted 4ms 1.348 MiB
#5 Wrong Answer 6ms 1.25 MiB
#6 Wrong Answer 5ms 1.188 MiB
#7 Wrong Answer 8ms 1.375 MiB
#8 Wrong Answer 36ms 1.281 MiB
#9 Wrong Answer 36ms 1.32 MiB
#10 Wrong Answer 36ms 1.355 MiB

信息

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