It looks like I just needed to include algorithm explicitly. I am not sure why this did not error when running g++11, but it is now working.
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
char shipLetters[] = { 'A', 'B', 'S', 'C', 'D' };
char selection;
cin >> selection;
char *index = std::find(begin(shipLetters), end(shipLetters), selection);
cout << index << endl;
return 0;
}