记录详情

Memory Exceeded

foo.cc: In function 'int Diff(char*)':
foo.cc:35:13: warning: unused variable 'i' [-Wunused-variable]
   35 |         int i=daxie(s)-Count(s);
      |             ^
foo.cc:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
   36 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:43:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   43 |     gets(s1) ;
      |     ~~~~^~~~
In file included from foo.cc:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:44:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   44 |     gets(s2) ;
      |     ~~~~^~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/store/74y3751gsixaz9797ib0hp7c658sp1y5-binutils-2.40/bin/ld: /tmp/ccXfBQ7B.o: in function `main':
foo.cc:(.text.unlikely+0xb): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Memory Exceeded ≥43ms ≥16.016 MiB
#2 Memory Exceeded ≥57ms ≥16.016 MiB
#3 Memory Exceeded ≥44ms ≥16.016 MiB
#4 Memory Exceeded ≥48ms ≥16.016 MiB
#5 Memory Exceeded ≥42ms ≥16.016 MiB

信息

递交者
类型
递交
题目
A8-3 字符串的统计函数
语言
C++
递交时间
2023-10-30 14:02:08
评测时间
2023-10-30 14:02:08
评测机
分数
0
总耗时
≥236ms
峰值内存
≥16.016 MiB