Borderou de evaluare (job #1487156)
Utilizator | Data | 16 septembrie 2015 11:12:08 | |
---|---|---|---|
Problema | Drumuri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: ‘L’ does not name a type
L *a[260],*u,*w;
^
user.cpp:10:8: error: variable or field ‘A’ declared void
void A(L *&u,L *&w,int i,int j) { u=new L,w=new L,u->v=j,w->v=i,u->p=w,w->p=u,u->n=a[i],w->n=a[j],a[i]=u,a[j]=w; }
^
user.cpp:10:12: error: ‘u’ was not declared in this scope
void A(L *&u,L *&w,int i,int j) { u=new L,w=new L,u->v=j,w->v=i,u->p=w,w->p=u,u->n=a[i],w->n=a[j],a[i]=u,a[j]=w; }
^
user.cpp:10:18: error: ‘w’ was not declared in this scope
void A(L *&u,L *&w,int i,int j) { u=new L,w=new L,u->v=j,w->v=i,u->p=w,w->p=u,u->n=a[i],w->n=a[j],a[i]=u,a[j]=w; }
^
user.cpp:10:20: error: expected primary-expression before ‘int’
void A(L *&u,L *&w,int i,int j) { u=new L,w=new L,u->v=j,w->v=i,u->p=w,w->p=u,u->n=a[i],w->n=a[j],a[i]=u,a[j]=w; }
^
user.cpp:10:26: error: expected primary-expression before ‘int’
void A(L *&u,L *&w,int i,int j) { u=new L,w=new L,u->v=j,w->v=i,u->p=w,w->p=u,u->n=a[i],w->n=a[j],a[i]=u,a[j]=w; }
^
user.cpp: In function ‘int G()’:
user.cpp:13:5: error: ‘x’ was not declared in this scope
L *x,*e[260];
^
user.cpp:13:8: error: ‘e’ was not declared in this scope
L *x,*e[260];
^
user.cpp:18:8: error: ‘a’ was not declared in this scope
for(x=a[q.front()];x;x=x->n)
^
user.cpp: In function ‘int main()’:
user.cpp:30:25: error: ‘u’ was not declared in this scope
scanf("%d%d",&i,&j),A(u,w,2*i+1,2*j),u->c=n,u->f=w->c=w->f=0;
^
user.cpp:30:27: error: ‘w’ was not declared in this scope
scanf("%d%d",&i,&j),A(u,w,2*i+1,2*j),u->c=n,u->f=w->c=w->f=0;
^
user.cpp:30:38: error: ‘A’ was not declared in this scope
scanf("%d%d",&i,&j),A(u,w,2*i+1,2*j),u->c=n,u->f=w->c=w->f=0;
^
user.cpp:32:5: error: ‘u’ was not declared in this scope
A(u,w,2*i,2*i+1),u->c=n,u->f=w->c=w->f=0,A(u,w,2*n+2,2*i),u->c=n,u->f=1,w->c=0,w->f=-1,A(u,w,2*i+1,2*n+3),u->c=n,u->f=1,w->c=0,w->f=-1;
^
user.cpp:32:7: error: ‘w’ was not declared in this scope
A(u,w,2*i,2*i+1),u->c=n,u->f=w->c=w->f=0,A(u,w,2*n+2,2*i),u->c=n,u->f=1,w->c=0,w->f=-1,A(u,w,2*i+1,2*n+3),u->c=n,u->f=1,w->c=0,w->f=-1;
^
user.cpp:32:18: error: ‘A’ was not declared in this scope
A(u,w,2*i,2*i+1),u->c=n,u->f=w->c=w->f=0,A(u,w,2*n+2,2*i),u->c=n,u->f=1,w->c=0,w->f=-1,A(u,w,2*i+1,2*n+3),u->c=n,u->f=1,w->c=0,w->f=-1;
^
user.cpp:28:54: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("drumuri2.in","r",stdin),scanf("%d%d",&n,&m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !