int arr[32] = {...};
size_t N = sizeof(arr) / sizeof(arr[0]);
&
тоже исключение. std::ifstream f("file.txt");
std::wbuffer_convert<std::codecvt_utf8<wchar_t>> conv(f.rdbuf());
std::wistream wf(&conv);
SELECT name, COUNT(name) as count_name FROM table1 group by name