Compile Error

foo.cc: In function 'int main()':
foo.cc:9:8: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
     if(0<=a&&0=b&&300
        ^
foo.cc:9:19: error: lvalue required as left operand of assignment
     if(0<=a&&0=b&&300
                   ^~~
foo.cc:17:2: error: expected primary-expression before 'return'
  return 0;
  ^~~~~~
foo.cc:17:2: error: expected ')' before 'return'
foo.cc:7:13: warning: unused variable 'c' [-Wunused-variable]
     int a,b,c;
             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2359 1.5.9:奇数求和
语言
C++
递交时间
2021-10-30 23:20:04
评测时间
2021-10-30 23:20:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes