#include "basictype.h" /* functions needed in priority queue */ float getPriority(elemType x) { return x.error; } void printElem(elemType x) { printf("[%.2f, %d] ", x.error, x.otherstuff); }