foo.cc: In constructor 'Charstyle::Charstyle(char*)':
foo.cc:10:8: warning: statement has no effect [-Wunused-value]
10 | for (i; a[i] != 0; i++)
| ^
foo.cc: In copy constructor 'Charstyle::Charstyle(Charstyle&)':
foo.cc:17:8: warning: statement has no effect [-Wunused-value]
17 | for (i; s.data[i] != 0; i++)
| ^
foo.cc: In function 'int main()':
foo.cc:76:9: warning: left operand of comma operator has no effect [-Wunused-value]
76 | for (p, j; p <= r - 1; p++, j++)
| ^
foo.cc:76:13: warning: right operand of comma operator has no effect [-Wunused-value]
76 | for (p, j; p <= r - 1; p++, j++)
| ^
foo.cc:82:9: warning: left operand of comma operator has no effect [-Wunused-value]
82 | for (p, j; p <= r - 1; p++, j++)
| ^
foo.cc:82:13: warning: right operand of comma operator has no effect [-Wunused-value]
82 | for (p, j; p <= r - 1; p++, j++)
| ^
[Hydro](https://hydro.ac)提供评测服务