/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:10: error: expected unqualified-id before '=' token
  for(int = 1; i <= n; i++)
          ^
/in/foo.cc:8:10: error: expected ';' before '=' token
/in/foo.cc:8:10: error: expected primary-expression before '=' token
/in/foo.cc:8:15: error: 'i' was not declared in this scope
  for(int = 1; i <= n; i++)
               ^
/in/foo.cc:8:21: error: expected ')' before ';' token
  for(int = 1; i <= n; i++)
                     ^
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int = 1; i <= n; i++)
  ^~~
/in/foo.cc:8:23: 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:8:23: error: 'i' was not declared in this scope

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2020-01-12 10:54:33
评测时间
2020-01-12 10:54:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes