记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:52:10: error: expected unqualified-id before '=' token
  for (int=1;i<=n;i++)
          ^
/in/foo.cc:52:10: error: expected ';' before '=' token
/in/foo.cc:52:10: error: expected primary-expression before '=' token
/in/foo.cc:52:13: error: 'i' was not declared in this scope
  for (int=1;i<=n;i++)
             ^
/in/foo.cc:52:17: error: expected ')' before ';' token
  for (int=1;i<=n;i++)
                 ^
/in/foo.cc:52:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int=1;i<=n;i++)
  ^~~
/in/foo.cc:52:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int=1;i<=n;i++)
                  ^
/in/foo.cc:52:18: error: 'i' was not declared in this scope

信息

递交者
类型
自测
语言
C++
递交时间
2021-09-24 20:41:36
评测时间
2021-09-24 20:41:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes