Compile Error

foo.cc:10:32: error: stray '\357' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                ^
foo.cc:10:33: error: stray '\274' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                 ^
foo.cc:10:34: error: stray '\232' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                  ^
foo.cc:10:39: error: stray '\357' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                       ^
foo.cc:10:40: error: stray '\274' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                        ^
foo.cc:10:41: error: stray '\233' in program
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                         ^
foo.cc: In function 'int days_of_year(int)':
foo.cc:10:31: error: expected ':' before numeric constant
   10 |  return (is_leap_year(n) ? 366 :365);
      |                               ^   ~~~
      |                               :
foo.cc:10:39: error: expected ';' before '}' token
   10 |  return (is_leap_year(n) ? 366 :365);
      |                                       ^
      |                                       ;
   11 | }
      | ~                                      
foo.cc: In function 'int main()':
foo.cc:18:19: error: 'D' was not declared in this scope
   18 |  cin >> n >> m >> D;
      |                   ^
foo.cc:21:43: error: invalid types 'int[int]' for array subscript
   21 |  for(int i = 0; i < m - 1; i++) sum += d[i];
      |                                           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1073 闰年、年天数、月天数-函数
语言
C++
递交时间
2022-07-17 13:12:48
评测时间
2022-07-17 13:12:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes