Compile Error

foo.cc:3:1: error: 'count' does not name a type
    3 | count int n=10;
      | ^~~~~
foo.cc:4:7: error: 'n' was not declared in this scope
    4 | int a[n=1];
      |       ^
foo.cc: In function 'int main()':
foo.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=1;i<=n;i++)cin>>a[i]
      |                  ^
foo.cc:7:29: error: 'a' was not declared in this scope
    7 |   for(int i=1;i<=n;i++)cin>>a[i]
      |                             ^
foo.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=1;i<=n-1;i++)
      |               ^
foo.cc:8:18: error: 'n' was not declared in this scope
    8 |   for(int i=1;i<=n-1;i++)
      |                  ^
foo.cc:9:16: error: 'j' was not declared in this scope
    9 |    for(int j=1;j<=n;j++)
      |                ^
foo.cc:12:34: error: 'a' was not declared in this scope
   12 |  for(int i=1;i<=n;i++)cout<<" "<<a[i];
      |                                  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1088 数组--排序
语言
C++
递交时间
2022-08-02 16:20:16
评测时间
2022-08-02 16:20:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes