Borderou de evaluare (job #2050995)
Utilizator | Data | 28 octombrie 2017 13:43:45 | |
---|---|---|---|
Problema | Coach | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:21: error: ‘v1’ was not declared in this scope
scanf("%d",&v1[i].val);
^
user.cpp:28:9: error: expected ‘;’ before ‘v1’
v1[i].nod=i;
^
user.cpp:30:10: error: ‘v1’ was not declared in this scope
sort(v1+1,v1+n+1,cmp);
^
user.cpp:31:27: error: ‘nod’ was not declared in this scope
for(int i=1;i<=n;i++) nod[v1[i].nod]=i;
^
user.cpp:35:11: error: ‘nod’ was not declared in this scope
a=nod[a];
^
user.cpp:48:31: error: ‘k1’ was not declared in this scope
if(d[i11][k1] && d[k1][j] && v[i11]<=b && v[k1]<=b && v[j]<=b && v[i11]>=a && v[k1]>=a && v[j]>=a && i!=j &&(d[i1][j1]>d[i1][k]+d[k][j1] or d[i1][j1]==0)) d[i1][j1]=d[i1][k]+d[k][j1];
^
user.cpp:48:44: error: ‘j’ was not declared in this scope
if(d[i11][k1] && d[k1][j] && v[i11]<=b && v[k1]<=b && v[j]<=b && v[i11]>=a && v[k1]>=a && v[j]>=a && i!=j &&(d[i1][j1]>d[i1][k]+d[k][j1] or d[i1][j1]==0)) d[i1][j1]=d[i1][k]+d[k][j1];
^
user.cpp:22:17: warning: unused variable ‘poz1’ [-Wunused-variable]
int n,m,t,a,poz1,poz2,cmin,cmax,b,c;
^
user.cpp:22:22: warning: unused variable ‘poz2’ [-Wunused-variable]
int n,m,t,a,poz1,poz2,cmin,cmax,b,c;
^
user.cpp:22:27: warning: unused variable ‘cmin’ [-Wunused-variable]
int n,m,t,a,poz1,poz2,cmin,cmax,b,c;
^
user.cpp:22:32: warning: unused variable ‘cmax’ [-Wunused-variable]
int n,m,t,a,poz1,poz2,cmin,cmax,b,c;
^
user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("coach.in","r",stdin);
^
user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("coach.out","w",stdout);
^
user.cpp:23:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&t);
^
user.cpp:34:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&a,&b,&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !