Borderou de evaluare (job #1271677)
Utilizator | Data | 22 noiembrie 2014 13:11:50 | |
---|---|---|---|
Problema | Taste | Status | done |
Runda | FMI No Stress 5 | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:10:9: error: conflicting types for ‘putb’
int putb = 1;
^
user.c:6:29: note: previous declaration of ‘putb’ was here
long int n,i,j,a,b,puta,putb;
^
user.c:14:21: error: ‘x’ undeclared (first use in this function)
while ((putb*a>=x) &&(putb*a<=y))
^
user.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
user.c:14:35: error: ‘y’ undeclared (first use in this function)
while ((putb*a>=x) &&(putb*a<=y))
^
user.c:24:5: error: expected ‘;’ before ‘}’ token
}
^
user.c:25:5: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
fprintf(g,"%ld %ld",puta,putb);
^
user.c:6:18: warning: unused variable ‘j’ [-Wunused-variable]
long int n,i,j,a,b,puta,putb;
^
user.c:6:16: warning: unused variable ‘i’ [-Wunused-variable]
long int n,i,j,a,b,puta,putb;
^
user.c:6:14: warning: unused variable ‘n’ [-Wunused-variable]
long int n,i,j,a,b,puta,putb;
^
user.c:9:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%ld %ld",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !