Compile Error

foo.cc:19:13: warning: multi-character character constant [-Wmultichar]
   19 |    cout<<i<<'  '<<g<<endl;
      |             ^~~~
foo.cc:4:7: error: expected identifier before 'int'
    4 | short[int] a[30005],n,x;
      |       ^~~
foo.cc:4:7: error: expected ']' before 'int'
    4 | short[int] a[30005],n,x;
      |       ^~~
      |       ]
foo.cc:4:6: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
    4 | short[int] a[30005],n,x;
      |      ^
foo.cc:4:6: error: structured binding declaration cannot have type 'short int'
foo.cc:4:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
foo.cc:4:6: error: empty structured binding declaration
foo.cc:4:12: error: expected initializer before 'a'
    4 | short[int] a[30005],n,x;
      |            ^
foo.cc: In function 'int main()':
foo.cc:7:7: error: 'n' was not declared in this scope
    7 |  cin>>n;
      |       ^
foo.cc:10:8: error: 'x' was not declared in this scope
   10 |   cin>>x;
      |        ^
foo.cc:11:3: error: 'a' was not declared in this scope
   11 |   a[x]++;
      |   ^
foo.cc:13:8: error: 'a' was not declared in this scope
   13 |  int g=a[1];
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1815 众数
语言
C++
递交时间
2022-06-21 10:39:28
评测时间
2022-06-21 10:39:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes