#include #include
using namespace std;
int main()
{
setlocale(LC_ALL, "ru");
srand(time(NULL));
int const i = 10;
int a[i];
for (int i = 0; i < 10; i++);
{
a[i] = rand() % 10;
}
{
for (int i = 0; i < 10; i++);
cout << a[i] << endl;
}
}
Выдает ошибку:Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted.
228
419
Ответы на вопрос:
Популярно: Информатика
-
1amon112.02.2022 00:34
-
vadim123123120.03.2021 23:35
-
hgcfm04.02.2023 19:05
-
daryamelikhova21.08.2022 00:33
-
korol09507.02.2022 17:08
-
Grizman704.03.2022 18:24
-
AngelinaMalik0512.04.2020 04:52
-
ninadyukovap0a6fu07.05.2021 15:13
-
Mashyanova201620.03.2021 04:41
-
megapunzaru20026.06.2023 03:26