Код: Выделить всё
#include
int main()
{
int a[] = { 1, 2, 3, 4, 5 };
for (const int *p = a; p != a + sizeof( a ) / sizeof( *a ); ++p)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79503795/run-time-error-using-a-compound-subscripting-expression-compiled-by-the-ms-vs22[/url]
Мобильная версия