记录详情

Compile Error

foo.cc:30:30: error: stray '\357' in program
       cout<<"输入有误!"; 
                              ^
foo.cc:30:31: error: stray '\274' in program
       cout<<"输入有误!"; 
                               ^
foo.cc:30:32: error: stray '\233' in program
       cout<<"输入有误!"; 
                                ^
foo.cc: In function 'int main()':
foo.cc:19:6: error: 'year' was not declared in this scope
  if((year % 400 == 0)||((year % 4 == 0)&&(year % 100 != 0)))
      ^~~~
foo.cc:19:6: note: suggested alternative: 'char'
  if((year % 400 == 0)||((year % 4 == 0)&&(year % 100 != 0)))
      ^~~~
      char
foo.cc:31:5: error: expected ';' before '}' token
     }   
     ^
foo.cc:7:12: warning: unused variable 'd' [-Wunused-variable]
    int y,m,d;
            ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
p1025 某月的天数
语言
C++
递交时间
2021-11-28 12:57:20
评测时间
2021-11-28 12:57:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes