SHARE
TWEET

Untitled

a guest Oct 15th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cstdio>
  2.  
  3. using namespace std;
  4.  
  5. typedef struct{
  6.                 int l,e,x;
  7.                 struct nod *ant,*urm;
  8.                 }NOD;
  9. NOD *p1,*u1;
  10. FILE *f=fopen("date.in","r");
  11.  
  12. NOD *caut(NOD*p,NOD *u,int e,int c)
  13.    {
  14.        NOD*q;
  15.        q=p;
  16.        while(q!=NULL)
  17.        { if(q1==l&&qc->c>c) return NULL;
  18.        if(q->l>l)return q;
  19.        if(q->l==l&&->c>c)return q;
  20.        q=q->urm;
  21.        }
  22.    }
  23. void adaug(NOD*&p,NOD*&u,int l, int c, int x)
  24. {
  25.     NOD*q,*r;
  26.     r=(NOD*)malloc(sizeof(NOD));
  27.     r->ant=r->urm=NULL;
  28.     r->l=l;r->c:r->x=x;
  29.   if(r->l<p->l||r->l==p->l&&r->c<p->c)
  30.   {
  31.       r->urm=p;
  32.       p->ant=r;
  33.       p=r;
  34.   }
  35.   else if(r->l->l||)
  36. }
  37.  
  38. int main()
  39. {
  40.  
  41.  
  42.  
  43.  
  44.  
  45.     return 0;
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top