Borderou de evaluare (job #1466963)
Utilizator | Data | 1 august 2015 17:32:13 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘euclid’:
user.c:4:9: error: ‘x’ undeclared (first use in this function)
x=x+y; \
^
user.c:11:21: note: in expansion of macro ‘swap’
if(a<b) swap(a,b)
^
user.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
x=x+y; \
^
user.c:11:21: note: in expansion of macro ‘swap’
if(a<b) swap(a,b)
^
user.c:4:13: error: ‘y’ undeclared (first use in this function)
x=x+y; \
^
user.c:11:21: note: in expansion of macro ‘swap’
if(a<b) swap(a,b)
^
user.c: In function ‘main’:
user.c:27:8: error: ‘i’ undeclared (first use in this function)
for(i=1;i<=T;i++)
^
user.c:29:23: error: ‘a’ undeclared (first use in this function)
scanf("%d%d",&a,&b);
^
user.c:29:26: error: ‘b’ undeclared (first use in this function)
scanf("%d%d",&a,&b);
^
user.c:23:11: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.in","r",stdin);
^
user.c:24:11: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.out","w",stdout);
^
user.c:25:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !