/ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:15: error: expected unqualified-id before '=' token
  for(long long=a;i<=b;i++)
               ^
foo.cc:7:15: error: expected ';' before '=' token
foo.cc:7:15: error: expected primary-expression before '=' token
foo.cc:7:18: error: 'i' was not declared in this scope
  for(long long=a;i<=b;i++)
                  ^
foo.cc:7:22: error: expected ')' before ';' token
  for(long long=a;i<=b;i++)
                      ^
foo.cc:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(long long=a;i<=b;i++)
  ^~~
foo.cc:7:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for(long long=a;i<=b;i++)
                       ^
foo.cc:7:23: error: 'i' was not declared in this scope
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1643 闰年祝福
语言
C++
递交时间
2021-08-11 16:12:19
评测时间
2021-08-11 16:12:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes