记录详情

Compile Error

foo.cc: In member function 'bool MyClass::p(MyClass&)':
foo.cc:15:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   15 |                 if(obj.x % 400 == 0 || (obj.x % 4 == 0 && obj.x % 100 != 0));
      |                 ^~
foo.cc:16:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   16 |                 {
      |                 ^
/nix/store/nydwzhllkq0a21dny69zdjczh6v275lb-binutils-2.40/bin/ld: /nix/store/8bmp6r3a0xfha3wj36phlc47clh9w81l-glibc-2.35-224/lib/crt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

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