记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:6: error: 'inti' was not declared in this scope
  for(inti=1;i<=n;i++)
      ^~~~
/in/foo.cc:7:13: error: 'i' was not declared in this scope
  for(inti=1;i<=n;i++)
             ^
/in/foo.cc:10:8: error: expected initializer before '+=' token
   int s+=a[i];
        ^~
/in/foo.cc:12:11: error: 's' was not declared in this scope
  float ss=s/n;
           ^
/in/foo.cc:13:17: error: 'print' was not declared in this scope
  print("%.4f",ss);
                 ^

信息

递交者
类型
递交
题目
平均分
语言
C++
递交时间
2021-02-10 18:25:56
评测时间
2021-02-10 18:25:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes