记录详情

Accepted

foo.cc: In constructor 'Charz::Charz()':
foo.cc:25:13: warning: unused variable 'i' [-Wunused-variable]
   25 |         int i;
      |             ^
foo.cc: In member function 'int Charz::Length(char*)':
foo.cc:43:28: warning: value computed is not used [-Wunused-value]
   43 |         for (; *a != '\0'; *a++, i++) {}
      |                            ^~~~
foo.cc: In member function 'Charz& Charz::Concat(Charz&)':
foo.cc:81:16: warning: reference to local variable 'c' returned [-Wreturn-local-addr]
   81 |         return c;
      |                ^
foo.cc:75:15: note: declared here
   75 |         Charz c(*this);
      |               ^
foo.cc: In member function 'Charz& Charz::DelateOne(char)':
foo.cc:140:16: warning: reference to local variable 's' returned [-Wreturn-local-addr]
  140 |         return s;
      |                ^
foo.cc:129:15: note: declared here
  129 |         Charz s;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1061 A8-5 删除字符串中多余的一种字符
比赛
2022春 C语言课程设计 作业3
语言
C++
递交时间
2022-04-23 17:03:19
评测时间
2022-04-23 17:03:19
评测机
分数
100
总耗时
13ms
峰值内存
384.0 KiB