#include#include#define MAX_SIZE 100typedef struct {int coef;int exp;}PolyType;PolyType poly[MAX_SIZE];int last;int avail=0;void padd(int sp, int fp, int sq, int fq, int *sr, int *fr); //덧셈void psub(int sp, int fp, int sq, int fq, int *sr, int *fr); //뻴셈void attach(int coefficient, int exponent);int compare(int exp_a, int exp_b);void main(){int sp=0;int fp=2;int sq=3;int fq=5;int sr, fr;int i;avail=6;poly[0].coef=30;poly[0].exp=100;poly[1].coef=6;poly[1].exp=10;poly[2].coef=3;poly[2].exp=0;poly[3].coef=4;poly[3].exp=10;poly[4].coef=3;poly[4].exp=2;poly[5].coef=2;poly[5].exp=0;for(i=0; i