Borderou de evaluare (job #1780190)

Utilizator gorneanu.andreiFMI Gorneanu Andrei gorneanu.andrei Data 15 octombrie 2016 22:07:17
Problema Queue Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:70:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[30]’ [-Wformat=] fscanf(f,"%s",&sir); ^ user.c:77:17: warning: implicit declaration of function ‘isdigit’ [-Wimplicit-function-declaration] while(isdigit(sir[j])) ^ user.c:52:23: warning: unused variable ‘mod’ [-Wunused-variable] int n,i,parse,x,j,mod=1,y,stiva,auxiliar,mutare,aux; ^ user.c: In function ‘pop’: user.c:45:5: warning: control reaches end of non-void function [-Wreturn-type] } //sf pop_back ^ user.c: In function ‘main’: user.c:62:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:70:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s",&sir); ^ user.c: In function ‘push’: user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] {++top[2]; ^ user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] user.c: In function ‘pop’: user.c:35:27: warning: array subscript is above array bounds [-Warray-bounds] if(top[2]==-1) ^ user.c:39:18: warning: array subscript is above array bounds [-Warray-bounds] --top[2]; ^ user.c: In function ‘main’: user.c:56:8: warning: array subscript is above array bounds [-Warray-bounds] top[2]=-1; ^ user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] {++top[2]; ^ user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] {++top[2]; ^ user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] {++top[2]; ^ user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds] user.c:12:19: warning: array subscript is above array bounds [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbVariabila de push invalida!0
24ms264kbVariabila de push invalida!0
34ms268kbVariabila de push invalida!0
4Depăşit276kbTime limit exceeded.0
5Depăşit264kbTime limit exceeded.0
6Depăşit260kbTime limit exceeded.0
7Depăşit268kbTime limit exceeded.0
8Depăşit276kbTime limit exceeded.0
9Depăşit268kbTime limit exceeded.0
10Depăşit276kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?