Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=12) t+=30;
          ^
/in/foo.cc:13:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=11) t+=31;
          ^
/in/foo.cc:14:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=10) t+=30;
          ^
/in/foo.cc:15:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=9) t+=31;
         ^
/in/foo.cc:16:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=8) t+=31;
         ^
/in/foo.cc:17:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=7) t+=30;
         ^
/in/foo.cc:18:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=6) t+=31;
         ^
/in/foo.cc:19:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=5) t+=30;
         ^
/in/foo.cc:20:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=4) t+=31;
         ^
/in/foo.cc:21:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=3) t+=28;
         ^
/in/foo.cc:22:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=2) t+=31;
         ^
/in/foo.cc:23:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(y=1);
         ^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 356.0 KiB
#2 Wrong Answer 1ms 376.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 408.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1029 A1-4 循环结构练习:今年过去了多少天
语言
C++
递交时间
2022-01-10 09:22:15
评测时间
2022-01-10 09:22:15
评测机
分数
60
总耗时
7ms
峰值内存
408.0 KiB