#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "vector_utils.h"
#include "tested_declarations.h"
#include "rdebug.h"
int main()
{
float tab1[100];
float *vec = tab1;
int tab2[100];
int *out = tab2;
int size = 0;
printf("Podaj liczby:\n");
size = read_vector_float(vec, 100, -1);
int hist = create_histogram(vec, size, out, size);
//int res = create_histogram((float[]){9.941554, 6.378754, 9.244984, 5.952509, 6.067851, 4.649873, 1.142815, 5.253298, 4.862896, 9.949724, 0.387957, 0.181615, 6.756926, 9.948668, 8.896092, 6.966488, 3.351933, 3.273143, 9.427932, 10.204406, 9.199451, 7.475066, 0.733212, 10.441716, 6.120441, 9.028251, 9.491175, 2.246896, 0.858988, 2.741693, 10.257991, 1.134922, 8.415881, 1.940359, 7.665992, 9.998259, 3.398976, 6.972785, 3.075263, 2.372870, 5.146831, 8.296388, 2.304843, 1.281589, 10.084546, 6.942106, 3.868967, 8.737364, 8.270268, 8.089022, 6.719636, 4.428933, 8.077717, 0.661735, 8.871680, 1.164481, 6.378136, 4.510364, 1.672422, 9.334367, 5.403484, 9.637116, 10.489320, 1.385817, 8.769475, 3.455751, 2.659752, 7.604501, 7.210423, 6.203259, 1.315733, 8.036674, 4.204155, 8.185489, 2.070377, 5.141510, 3.011488, 7.727993, 9.466393, 4.623008, 2.619160, 6.245894, 6.928064, 7.869767, 5.087290, 9.027260, 1.960215, 2.071840, 6.563864, 2.737863, 1.267333, 3.188771, 9.198199, 10.701691, 8.145068, 8.457506, 1.225366, 9.956969, 0.882719, 4.506441}, 100, out, 11);
if(hist == 1)
{
printf("Incorrect input");
exit(1);
}
display_vector(out, 11);
if (size < 0)
{
printf("Incorrect input");
exit(1);
}
if (size == 0)
{
printf("Not enough data available");
exit(3);
}
return 0;
}