fork download
  1. typedef struct node {
  2. int data;
  3. struct node *next;
  4. }Node;
  5. typedef struct list {
  6. Node *first;
  7. Node *last;
  8. }list_datatype;
  9. void init_list();
  10. void insert_head_node(int x);
  11. void insert_last_node(int x);
  12. void insert_middle_node(int x, int location);
  13. void delete_head();
  14. void delete_last();
  15. void display_list();
  16. ////////////////////////////
  17. ////////////////////////////
  18. ////////////////////////////
  19. ////////////////////////////
  20. // add tow polynominal
  21. typedef struct _node_poly
  22. {
  23. int coeff;
  24. int pow;
  25. struct _node_poly *next;
  26. }Node_Poly;
  27.  
  28. typedef struct _poly
  29. {
  30. Node_Poly *head;
  31. struct _poly *next;
  32. }Poly;
  33.  
  34. typedef struct list_poly
  35. {
  36. Poly *head;
  37. }List_Poly;
  38.  
  39. Node_Poly* creat_node(int coeff, int pow);
  40. void add_node_poly(Poly *_Poly,Node_Poly *node);
  41. void display_polynominal(Poly _Poly);
  42. void add_two_polynominal(Poly _Poly1, Poly _Poly2, Poly *_Poly3);
  43. int min(int a, int b);
  44. int max(int a, int b);
  45. void multiple_two_polynominal(Poly _Poly1, Poly _Poly2, Poly *_Poly3);
  46. int length_poly(Poly _Poly);
  47. void add_list_poly(List_Poly *_List_Poly,Poly *_Poly);
  48. Poly convert_polycontro_to_poly_binhthuong(Poly *a);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty