Question: I have a command in discord.py where I would like to have, for example, `@has_permissions(administrator=True)`, but I want to be able to run the command with, say, a custom check that checks if it is a certain user, so that the user/role/whatever can run the command, regardless of whether or not they have the permission. So I guess my question is this: is there a way to allow a command if a user passes at least 1 check? Thank you in advance!

Answer: 
This is undefined behavior

```
long long whatever[] = {0};
std::cout << whatever[0] << std::endl;
whatever[2] = 10;  // BAD

```

The code statically initializes `whatever` as an array of one element. Then you assign a value to `whatever[2]`. The only valid index in that array is `0`. Assigning anything to index `1` or `2` overwrites the important stuff on the stack or does other nefarious things.

You probably meant:

```
long long whatever[2] = {0};
std::cout << whatever[0] << std::endl;
whatever[1] = 10; 

std::cout << "The size of this array is " << sizeof(whatever) << std::endl;

```
You are not measuring the size of an array, but the size of the sum of two `long long`s. I.e.,

```
sizeof(whatever[0] + whatever[2])

```

is essentially the same as

```
sizeof(long long)

```

which you point out is 8.