Borderou de evaluare (job #1472395)
Utilizator | Data | 17 august 2015 03:43:14 | |
---|---|---|---|
Problema | Aria | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from user.c:1:0:
user.c: In function ‘main’:
user.c:10:32: error: expected expression before ‘v’
assert(scanf("%lf%lf",&v[i].x,&v[i].y)==2),assert(-10000000<=v[i].x&&v[i].x<=10000000),assert(-10000000<=v[i].y&&v[i].y<=10000000);
^
user.c:10:70: error: expected expression before ‘v’
assert(scanf("%lf%lf",&v[i].x,&v[i].y)==2),assert(-10000000<=v[i].x&&v[i].x<=10000000),assert(-10000000<=v[i].y&&v[i].y<=10000000);
^
user.c:10:51: warning: left-hand operand of comma expression has no effect [-Wunused-value]
assert(scanf("%lf%lf",&v[i].x,&v[i].y)==2),assert(-10000000<=v[i].x&&v[i].x<=10000000),assert(-10000000<=v[i].y&&v[i].y<=10000000);
^
In file included from user.c:1:0:
user.c:10:114: error: expected expression before ‘v’
assert(scanf("%lf%lf",&v[i].x,&v[i].y)==2),assert(-10000000<=v[i].x&&v[i].x<=10000000),assert(-10000000<=v[i].y&&v[i].y<=10000000);
^
user.c:10:95: warning: left-hand operand of comma expression has no effect [-Wunused-value]
assert(scanf("%lf%lf",&v[i].x,&v[i].y)==2),assert(-10000000<=v[i].x&&v[i].x<=10000000),assert(-10000000<=v[i].y&&v[i].y<=10000000);
^
user.c:11:10: error: expected identifier or ‘(’ before ‘[’ token
for(v[n]=v[0],i=0;i<n;++i)
^
user.c:12:17: error: expected ‘)’ before ‘.’ token
s+=(v[i].x*v[i+1].y-v[i+1].x*v[i].y);
^
user.c:12:45: error: expected expression before ‘;’ token
s+=(v[i].x*v[i+1].y-v[i+1].x*v[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !