/ 晓编程 /

记录详情

Compile Error

/in/foo.cc:5:31: error: 'month' has not been declared
 bool isZuiHouYiTian (int year,month,day){
                               ^~~~~
/in/foo.cc:5:37: error: 'day' has not been declared
 bool isZuiHouYiTian (int year,month,day){
                                     ^~~
/in/foo.cc: In function 'bool isZuiHouYiTian(int, int, int)':
/in/foo.cc:6:5: error: 'month' was not declared in this scope
  if(month==2){
     ^~~~~
/in/foo.cc:7:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(year%4==0&&year%100!=0||year%100==0&&year%400==0){
      ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:8:7: error: 'day' was not declared in this scope
    if(day==29)return true;
       ^~~
/in/foo.cc:13:9: error: 'day' was not declared in this scope
      if(day==31)return true;
         ^~~
/in/foo.cc:18:9: error: 'day' was not declared in this scope
      if(day==31)return true;
         ^~~
/in/foo.cc:27:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
/in/foo.cc:35:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc:35:1: error: expected '}' at end of input
/in/foo.cc:35:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1050 玩吃鸡的日子
语言
C++
递交时间
2020-05-14 20:50:16
评测时间
2020-05-14 20:50:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes