/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool rn(int)':
/in/foo.cc:8:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(year%4==0&&year%100!=0||year%400==0)
     ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'bool judge(int, int, int)':
/in/foo.cc:16:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(year==2001&&(month>11||month==11&&day>4))
                            ~~~~~~~~~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:10: warning: unused variable 'shit' [-Wunused-variable]
      int shit=judge(l,m,n);
          ^~~~
/in/foo.cc: In function 'bool judge(int, int, int)':
/in/foo.cc:55:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 6ms 380.0 KiB

信息

递交者
类型
递交
题目
P1004 伊甸园日历游戏
语言
C++
递交时间
2018-06-11 11:22:35
评测时间
2018-06-11 11:22:35
评测机
分数
100
总耗时
6ms
峰值内存
380.0 KiB