记录详情

Compile Error

/in/foo.cc: In function 'int operator-(MyClass&, MyClass&)':
/in/foo.cc:23:28: warning: unused variable 'b' [-Wunused-variable]
    if (obj2.p(obj2)) { int b[12] = { 31,29,31,30,31,30,31,31,30,31,30,31 }; }
                            ^
/in/foo.cc:38:28: warning: unused variable 'b' [-Wunused-variable]
    if (obj1.p(obj1)) { int b[13] = {0, 31,29,31,30,31,30,31,31,30,31,30,31 }; }
                            ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:56:11: error: expected '}' at end of input
  cout << n;
           ^

信息

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