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);
| ^
[Hydro](https://hydro.ac)提供评测服务