In C++, arrays use zero based indexes: so the only valid indexes for an array with 3 elements are 0, 1, and 2.
Your code:
char pwd[SIZE];
...
verify(pwd[SIZE], SIZE);
Tries to pass the fourth element, if SIZE was 3.
What you need to do is change the forward reference to match the actual declaration, and pass the pointer to the first element:
bool verify(const char[], const int);
int main(){
...
char pwd[SIZE];
...
verify(pwd, SIZE);
...
}
bool verify(const char pwd[], const int SIZE)