Borderou de evaluare (job #1487204)
Utilizator | Data | 16 septembrie 2015 14:33:16 | |
---|---|---|---|
Problema | Reuniune | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:4:3: error: conflicting types for ‘a’
D a,b,c,x,y,z,t;
^
user.c:3:11: note: previous declaration of ‘a’ was here
long long a,p;
^
user.c: In function ‘main’:
user.c:17:6: error: incompatible types when assigning to type ‘D’ from type ‘long long int’
a=A(a)+A(b)+A(c)-A(x)-A(y)-A(z)+A(t),p=P(a)+P(b)+P(c)-P(x)-P(y)-P(z)+P(t),printf("%lld %lld",a,p);
^
user.c:17:41: warning: left-hand operand of comma expression has no effect [-Wunused-value]
a=A(a)+A(b)+A(c)-A(x)-A(y)-A(z)+A(t),p=P(a)+P(b)+P(c)-P(x)-P(y)-P(z)+P(t),printf("%lld %lld",a,p);
^
user.c:17:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘D’ [-Wformat=]
a=A(a)+A(b)+A(c)-A(x)-A(y)-A(z)+A(t),p=P(a)+P(b)+P(c)-P(x)-P(y)-P(z)+P(t),printf("%lld %lld",a,p);
^
user.c:17:41: warning: value computed is not used [-Wunused-value]
a=A(a)+A(b)+A(c)-A(x)-A(y)-A(z)+A(t),p=P(a)+P(b)+P(c)-P(x)-P(y)-P(z)+P(t),printf("%lld %lld",a,p);
^
user.c:15:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reuniune.in","r",stdin),freopen("reuniune.out","w",stdout),scanf("%d%d%d%d",&a.x1,&a.y1,&a.x2,&a.y2),
^
user.c:15:45: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reuniune.in","r",stdin),freopen("reuniune.out","w",stdout),scanf("%d%d%d%d",&a.x1,&a.y1,&a.x2,&a.y2),
^
user.c:15:78: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reuniune.in","r",stdin),freopen("reuniune.out","w",stdout),scanf("%d%d%d%d",&a.x1,&a.y1,&a.x2,&a.y2),
^
user.c:16:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&b.x1,&b.y1,&b.x2,&b.y2),scanf("%d%d%d%d",&c.x1,&c.y1,&c.x2,&c.y2),x=R(a,b),y=R(a,c),z=R(b,c),t=R(x,c);
^
user.c:16:52: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&b.x1,&b.y1,&b.x2,&b.y2),scanf("%d%d%d%d",&c.x1,&c.y1,&c.x2,&c.y2),x=R(a,b),y=R(a,c),z=R(b,c),t=R(x,c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !