记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:9:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    9 |         gets(a);
      |         ~~~~^~~
In file included from cstdio:42:
/nix/store/ck17nf5q2m51d9jpkpsirx91s64vh202-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   14 |         for(k = x; k < strlen(a); k++){
      |                    ~~^~~~~~~~~~~
foo.cc:8:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
    8 |         int x, m, n, r, k;
      |             ^
/nix/store/dpxy5cr7cm0nch0qvq2qygs9jwnmhiy5-binutils-2.38/bin/ld: /tmp/cctKkuFJ.o: in function `main':
foo.cc:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2022年迎新赛(第一场)
语言
C++
递交时间
2022-08-15 11:33:40
评测时间
2022-08-15 11:33:40
评测机
分数
100
总耗时
10ms
峰值内存
256.0 KiB