Borderou de evaluare (job #2011715)
Utilizator | Data | 16 august 2017 23:18:15 | |
---|---|---|---|
Problema | Palindrom2 | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:21:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[1001]’ [-Wformat=]
scanf("%s",&s);
^
user.c:27:5: warning: implicit declaration of function ‘strrev’ [-Wimplicit-function-declaration]
printf("%s",s);strrev(s);
^
user.c:23:13: warning: unused variable ‘j’ [-Wunused-variable]
int i , j;
^
user.c:19:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(in, "r", stdin);
^
user.c:20:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen(out, "w", stdout);
^
user.c:21:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s);
^
/tmp/ccLRLHcc.o: In function `main':
user.c:(.text.startup+0x104): undefined reference to `strrev'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !