运行 ID: 531

Main.cc: In function ‘int main()’:
Main.cc:5:39: error: expected primary-expression before ‘%’ token
  if(s!=2&&(s%2==0&&s<7)||(s%2==1&&s>8%%s<=12)){
                                       ^
Main.cc:7:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  }else if(s!=2&&(s%2==1&&s<8)||(s%2==0&&s>7&&s<=12)){
           ~~~~^~~~~~~~~~~~~~~
Main.cc:9:2: error: expected ‘;’ before ‘}’ token
  }else if(s==2&&(a%4==0&&a%100!=0)||(a%400==0&&a%3200!=0)){
  ^
Main.cc:9:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  }else if(s==2&&(a%4==0&&a%100!=0)||(a%400==0&&a%3200!=0)){
           ~~~~^~~~~~~~~~~~~~~~~~~~
Main.cc:4:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&a,&s);
  ~~~~~^~~~~~~~~~~~~~~