Borderou de evaluare (job #1425384)
Utilizator | Data | 27 aprilie 2015 13:19:47 | |
---|---|---|---|
Problema | Arbori indexati binar | Status | done |
Runda | pregatire-lot-aib | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘upd’:
user.c:6:17: error: ‘pl’ undeclared (first use in this function)
aib[i]+=pl;
^
user.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
user.c:7:13: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
i+=i&(i-1)^i;
^
user.c: In function ‘sum’:
user.c:14:12: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
a=a-(a&(a-1))^a;
^
user.c: In function ‘caut’:
user.c:22:32: error: ‘s’ undeclared (first use in this function)
if(i+p<=n && sum(i+p)<=s)
^
user.c: In function ‘main’:
user.c:33:9: error: ‘pl’ undeclared (first use in this function)
pl=v[i];
^
user.c:41:13: error: ‘s’ undeclared (first use in this function)
s=a;
^
user.c:30:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&m);
^
user.c:32:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&v[i]);
^
user.c:38:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&c);
^
user.c:40:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&a);
^
user.c:48:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&a,&b);
^
user.c:52:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !