Bonjour,

J'ai des problèmes pour compiler cette routine.

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int zone(const Tsudoku* s, const int* i, const int* j);

// ZONE
int zone(const Tsudoku* s, const int* i, const int* j)
{
return ((j/3.0)+3*(i/3.0));
}

Quand je lance ma compilation :

gcc -o sudoku sudoku.c -Wall -lm


J'ai ce message d'erreur :

test.c: In function `zone':
test.c:26: invalid operands to binary /
test.c:26: invalid operands to binary /

Quelqu'un peut me dire pourquoi et me dire comment je peux résoudre mon problème?

Merci.