Error C2108: subscript is not of integral type - C (СИ)
Формулировка задачи:
Выдаёт на компиляции такую ошибку
error C2108: subscript is not of integral type
в чём проблема?
int main()
{
double mas[80][80], i, j;
int n, m, k;
printf("Enter size array: ");
scanf("%d%d", &n, &m);
printf("Enter array:\n\n");
for(i=0; i<n; i++) {
for(j=0; j<m; j++)
{
scanf("%f", &mas[i][j]);
}
}Решение задачи: «Error C2108: subscript is not of integral type»
textual
Листинг программы
#include "stdafx.h"
#include <math.h>
#include <stdio.h>
int main()
{
float l=9.5564;
printf("x = %6.2f \n",l);
return 0;
}