Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: error: expected ')' before ';' token
  if(int i=a;i<=b;i++)
            ^
/in/foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(int i=a;i<=b;i++)
  ^~
/in/foo.cc:7:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(int i=a;i<=b;i++)
             ^
/in/foo.cc:7:9: warning: unused variable 'i' [-Wunused-variable]
  if(int i=a;i<=b;i++)
         ^
/in/foo.cc:7:13: error: 'i' was not declared in this scope
  if(int i=a;i<=b;i++)
             ^

信息

递交者
类型
递交
题目
P2579 求闰年1级2 2023年模拟题
语言
C++
递交时间
2024-11-19 06:57:44
评测时间
2024-11-19 06:57:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes