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)提供评测服务