记录详情

Compile Error

foo.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
foo.cc: In function 'void Disparity(int, int, int, int, int, int)':
foo.cc:35:3: error: 'cout' was not declared in this scope
   35 |   cout << "这两个日期相差" << MDisparity << "天" << endl;
      |   ^~~~
foo.cc:35:61: error: 'endl' was not declared in this scope
   35 |   cout << "这两个日期相差" << MDisparity << "天" << endl;
      |                                                             ^~~~
foo.cc:46:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   46 |   if ((i % 400 == 0) || (i % 4 == 0) && (i % 100 != 0))
      |                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:64:2: error: 'cout' was not declared in this scope
   64 |  cout << disparity << endl;
      |  ^~~~
foo.cc:64:23: error: 'endl' was not declared in this scope
   64 |  cout << disparity << endl;
      |                       ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1004 OO1-4 日期类Date
语言
C++
递交时间
2022-04-29 17:59:20
评测时间
2022-04-29 17:59:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes