Borderou de evaluare (job #2288051)
| Utilizator | Data | 22 noiembrie 2018 20:06:47 | |
|---|---|---|---|
| Problema | Evaluarea unei expresii | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c: In function 'E':
main.c:7:14: error: lvalue required as increment operand
p++,x=E(0),p++;
^~
main.c:7:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
p++,x=E(0),p++;
^
main.c:7:25: error: lvalue required as increment operand
p++,x=E(0),p++;
^~
main.c:9:39: error: lvalue required as increment operand
for(x=0;*p>='0'&&*p<='9';p++)
^~
main.c:14:18: error: lvalue required as increment operand
p++,y=x+E(l+1);
^~
main.c:14:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
p++,y=x+E(l+1);
^
main.c:16:18: error: lvalue required as increment operand
p++,y=x-E(l+1);
^~
main.c:16:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
p++,y=x-E(l+1);
^
main.c:18:18: error: lvalue required as increment operand
p++,y=x*E(l+1);
^~
main.c:18:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
p++,y=x*E(l+1);
^
main.c:20:18: error: lvalue required as increment operand
p++,y=x/E(l+1);
^~
main.c:20:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
p++,y=x/E(l+1);
^
main.c: In function 'main':
main.c:24:73: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
freopen("evaluare.in","r",stdin),freopen("evaluare.out","w",stdout),gets(p),printf("%d",E(0));
^~~~
main.c:24:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("evaluare.in","r",stdin),freopen("evaluare.out","w",stdout),gets(p),printf("%d",E(0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:24:38: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("evaluare.in","r",stdin),freopen("evaluare.out","w",stdout),gets(p),printf("%d",E(0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
