Compile Error

foo.cc: In function 'int main()':
foo.cc:15:9: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
   15 |     *a[0] = 456;
      |         ^
foo.cc:15:9: error: 'void*' is not a pointer-to-object type
foo.cc:16:43: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
   16 |     *a[1024 * 1024 * 100 / sizeof(int) - 1] = 123;
      |                                           ^
cc1plus: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
foo.cc:16:43: error: 'void*' is not a pointer-to-object type
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1000 输出“Hello World!"
语言
C++
递交时间
2022-08-05 18:00:08
评测时间
2022-08-05 18:00:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes