Borderou de evaluare (job #2010595)

Utilizator Rodik_RodyRodica Vasilescu Rodik_Rody Data 13 august 2017 18:27:19
Problema Doi Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:11:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long unsigned int *’ [-Wformat=] scanf("%d",&k); ^ user.c:13:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[501]’ [-Wformat=] scanf("%s",&s); ^ user.c:14:9: warning: implicit declaration of function ‘strrev’ [-Wimplicit-function-declaration] strrev(n); ^ user.c:15:9: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [enabled by default] int h = strlen(n); ^ In file included from user.c:3:0: /usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘long long unsigned int’ extern size_t strlen (__const char *__s) ^ user.c:17:13: error: subscripted value is neither array nor pointer nor vector n=(n[h-1]-'0')*100+; ^ user.c:17:28: error: expected expression before ‘;’ token n=(n[h-1]-'0')*100+; ^ user.c:9:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(in, "r", stdin); ^ user.c:10:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(out, "w", stdout); ^ user.c:11:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ user.c:13:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s); ^

Ceva nu functioneaza?