Compile Error

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:17: error: ‘flag’ was not declared in this scope
    8 |                 flag++;
      |                 ^~~~
foo.cc:9:15: error: ‘flag’ was not declared in this scope
    9 |         cout<<flag;
      |               ^~~~

信息

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