Borderou de evaluare (job #1996784)
Utilizator | Data | 2 iulie 2017 16:32:11 | |
---|---|---|---|
Problema | Cifra | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘cifra’:
user.c:10:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==2)
^
user.c:21:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==3)
^
user.c:32:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==4)
^
user.c:37:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==7)
^
user.c:48:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==8)
^
user.c:59:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(x==9)
^
user.c: In function ‘scadere_1’:
user.c:69:5: warning: implicit declaration of function ‘strrev’ [-Wimplicit-function-declaration]
strrev(a);
^
user.c:80:12: warning: comparison between pointer and integer [enabled by default]
if(a[0]==NULL)
^
user.c:68:10: warning: unused variable ‘c’ [-Wunused-variable]
char c[1001];
^
user.c:67:9: warning: unused variable ‘n’ [-Wunused-variable]
int n = strlen(a), i=0, x=0;
^
user.c: In function ‘main’:
user.c:91:5: warning: format ‘%c’ expects a matching ‘char *’ argument [-Wformat=]
scanf("%d%c",&t);
^
user.c: In function ‘cifra’:
user.c:64:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.c: In function ‘main’:
user.c:88:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifra.in","r",stdin);
^
user.c:89:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifra.out","w",stdout);
^
user.c:91:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%c",&t);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !