Borderou de evaluare (job #1259733)
Utilizator | Data | 10 noiembrie 2014 15:15:27 | |
---|---|---|---|
Problema | Par | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:10:9: error: ‘i’ undeclared (first use in this function)
for(i=0;i<n;fscanf(f,"%c",&x),x=="("?a++,i++:b++,i++);
^
user.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
user.c:10:36: warning: comparison between pointer and integer [enabled by default]
for(i=0;i<n;fscanf(f,"%c",&x),x=="("?a++,i++:b++,i++);
^
user.c:10:36: warning: comparison with string literal results in unspecified behavior [-Waddress]
user.c:10:53: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(i=0;i<n;fscanf(f,"%c",&x),x=="("?a++,i++:b++,i++);
^
user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !