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