Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:7:17: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    7 |         if(a>=60&&b<60||b>=60&&a<60)
      |            ~~~~~^~~~~~
foo.cc:8:21: warning: ‘flag’ may be used uninitialized [-Wmaybe-uninitialized]
    8 |                 flag++;
      |                 ~~~~^~
foo.cc:5:17: note: ‘flag’ was declared here
    5 |         int a,b,flag;
      |                 ^~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 540.0 KiB
#2 Wrong Answer Read 1, expect 0. 3ms 536.0 KiB
#3 Accepted 3ms 324.0 KiB
#4 Wrong Answer Read 1, expect 0. 3ms 536.0 KiB
#5 Wrong Answer Read 1, expect 0. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1714 有一门课不及格的学生
语言
C++
递交时间
2024-04-13 07:02:59
评测时间
2024-04-13 07:02:59
评测机
分数
40
总耗时
15ms
峰值内存
540.0 KiB