correction mauvaise longueur de a[]

This commit is contained in:
DylanVsn 2019-10-23 14:09:18 +02:00
parent 1d363077da
commit e569ab77bd
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ int perfect_rolls() {
int nb_coeffs = 4; int nb_coeffs = 4;
double y1, y2, y3, y4; double y1, y2, y3, y4;
int a[4] = {0}; int a[5] = {0};
glp_smcp params = {0}; glp_smcp params = {0};
glp_init_smcp(&params); glp_init_smcp(&params);
params.msg_lev = GLP_MSG_OFF; params.msg_lev = GLP_MSG_OFF;

View File

@ -15,7 +15,7 @@ static void add_column_sp(glp_prob *lp, int *num_col_sp) {
} }
void column_generator(int y1, int y2, int y3, int y4, int a[static 4]) { void column_generator(int y1, int y2, int y3, int y4, int a[static 5]) {
glp_prob *sous_prob; glp_prob *sous_prob;
int ia[1 + 1000]; int ia[1 + 1000];
int ja[1 + 1000]; int ja[1 + 1000];

View File

@ -2,7 +2,7 @@
#define SUB_H #define SUB_H
void column_generator(int y1, int y2, int y3, int y4, int a[static 4]); void column_generator(int y1, int y2, int y3, int y4, int a[static 5]);
#endif #endif