/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:15: error: 'i' does not name a type
  for(register i=1;i<=n;i++)
               ^
/in/foo.cc:14:19: error: expected ';' before 'i'
  for(register i=1;i<=n;i++)
                   ^
/in/foo.cc:14:19: error: 'i' was not declared in this scope
/in/foo.cc:17:8: error: 'k' was not declared in this scope
  ans=0,k=(n+1)/2;
        ^
/in/foo.cc:18:15: error: 'i' does not name a type
  for(register i=1;i<=n;i++)
               ^
/in/foo.cc:18:19: error: expected ';' before 'i'
  for(register i=1;i<=n;i++)
                   ^
/in/foo.cc:18:19: error: 'i' was not declared in this scope

信息

递交者
类型
递交
题目
P1440 士兵
语言
C++
递交时间
2020-01-15 16:33:25
评测时间
2020-01-15 16:33:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes