记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1004 OO1-4 日期类Date
语言
C++
递交时间
2023-05-11 14:39:01
评测时间
2023-05-11 14:39:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes