So I am working on implementing the KnapSack problem, using the Branch and Bound algorithm. I have finished implementing it but I am getting some weird compiling errors which I have no idea how to fix:
COMPILING ERRORS
gcc -Wall -pedantic -g -std=c99 -c -o bnb.o bnb.c
bnb.c: In function ‘branch_and_bound’:
bnb.c:225: warning: cast from pointer to integer of different size
bnb.c:229: warning: implicit declaration of function ‘copy_string’
bnb.c:248: warning: cast from pointer to integer of different size
bnb.c:251: error: ‘struc_sol’ has no member named ‘string’
bnb.c:260: error: ‘struc_sol’ has no member named ‘string’
bnb.c:260: warning: cast from pointer to integer of different size
bnb.c:263: error: ‘struc_sol’ has no member named ‘string’
make: *** [bnb.o] Error 1
Any suggestions on what I am doing wrong?