summaryrefslogtreecommitdiff
path: root/set_linked_lists.c
diff options
context:
space:
mode:
authorAlex Auvolat--bernstein <auvolat@clipper.ens.fr>2013-12-04 17:26:06 +0100
committerAlex Auvolat--bernstein <auvolat@clipper.ens.fr>2013-12-04 17:26:06 +0100
commit71094b2d48ac784e60d454609064d20e83c017be (patch)
treedc99709c9edc95e0f4b0c98a8af05045e0037b1c /set_linked_lists.c
parent000a92524d2165daf7c790705fea91358b6ecf15 (diff)
downloadAlgoProg-Projet-71094b2d48ac784e60d454609064d20e83c017be.tar.gz
AlgoProg-Projet-71094b2d48ac784e60d454609064d20e83c017be.zip
Finished implementation for algorithm C, and corrected bitset bugs.
Diffstat (limited to 'set_linked_lists.c')
-rw-r--r--set_linked_lists.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/set_linked_lists.c b/set_linked_lists.c
index 86a53b3..004e55a 100644
--- a/set_linked_lists.c
+++ b/set_linked_lists.c
@@ -239,7 +239,10 @@ bool sets_equal(const set a, const set b) {
int elt_of_set(const set s) {
if (s->first != NULL) return s->first->value;
- return -1; // should raise exception... hope this will be handled properly
+
+ fprintf(stderr, "No element in empty set...\n");
+ dump_set(s);
+ assert(false);
}
int elt_of_set_heur(const set s, int h) {