记录详情

Runtime Error

foo.cc: In constructor 'Charz::Charz()':
foo.cc:27:13: warning: unused variable 'i' [-Wunused-variable]
   27 |         int i;
      |             ^
foo.cc: In member function 'int Charz::Length(char*)':
foo.cc:44:28: warning: value computed is not used [-Wunused-value]
   44 |         for (; *a != '\0'; *a++, i++) {}
      |                            ^~~~
foo.cc: In member function 'Charz& Charz::Concat(Charz&)':
foo.cc:82:16: warning: reference to local variable 'c' returned [-Wreturn-local-addr]
   82 |         return c;
      |                ^
foo.cc:76:15: note: declared here
   76 |         Charz c(*this);
      |               ^
foo.cc: In member function 'Charz& Charz::ChangeName(Charz&, Charz&)':
foo.cc:118:16: warning: reference to local variable 'c' returned [-Wreturn-local-addr]
  118 |         return c;
      |                ^
foo.cc:95:15: note: declared here
   95 |         Charz c(*this);
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 5ms 512.0 KiB
#2 Runtime Error Segmentation fault 4ms 512.0 KiB
#3 Runtime Error Segmentation fault 6ms 512.0 KiB
#4 Runtime Error Segmentation fault 4ms 512.0 KiB
#5 Runtime Error Segmentation fault 7ms 512.0 KiB

信息

递交者
类型
递交
题目
4-3 爱情故事
比赛
2022春 C语言课程设计 作业3
语言
C++
递交时间
2022-04-23 12:18:10
评测时间
2022-04-23 12:18:10
评测机
分数
0
总耗时
27ms
峰值内存
512.0 KiB