/ Vijos /

记录详情

Accepted

/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/cckmfESG.o: In function `main':
foo.cc:(.text.startup+0x46): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 1.363 MiB
#2 Accepted 2ms 1.25 MiB
#3 Accepted 4ms 1.125 MiB
#4 Accepted 4ms 1.25 MiB
#5 Accepted 2ms 1.34 MiB
#6 Accepted 7ms 1.344 MiB
#7 Accepted 4ms 1.125 MiB
#8 Accepted 40ms 1.332 MiB
#9 Accepted 41ms 1.355 MiB
#10 Accepted 38ms 1.25 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2018-03-16 15:07:00
评测时间
2018-03-16 15:07:00
评测机
分数
100
总耗时
150ms
峰值内存
1.363 MiB