foo.cc: In function 'int operator-(MyClass&, MyClass&)':
foo.cc:23:49: warning: unused variable 'b' [-Wunused-variable]
23 | if (obj2.p(obj2)) { int b[12] = { 31,29,31,30,31,30,31,31,30,31,30,31 }; }
| ^
foo.cc:38:49: warning: unused variable 'b' [-Wunused-variable]
38 | if (obj1.p(obj1)) { int b[13] = {0, 31,29,31,30,31,30,31,31,30,31,30,31 }; }
| ^
foo.cc: In function 'int main()':
foo.cc:56:19: error: expected '}' at end of input
56 | cout << n;
| ^
foo.cc:50:12: note: to match this '{'
50 | int main() {
| ^
[Hydro](https://hydro.ac)提供评测服务