Borderou de evaluare (job #2664099)

Utilizator plugaruaPlugaru Andrei plugarua Data 27 octombrie 2020 22:24:48
Problema Energii Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c:12:25: warning: missing braces around initializer [-Wmissing-braces] int results[1001][5001]={0,0}; ^ main.c:12:25: note: (near initialization for 'results') main.c: In function 'main': main.c:72:23: warning: implicit declaration of function 'rucsac' [-Wimplicit-function-declaration] fprintf(fp,"%d",rucsac(g,w)); ^~~~~~ main.c:30:13: warning: unused variable 'j' [-Wunused-variable] int g,i,j; ^ main.c:30:11: warning: unused variable 'i' [-Wunused-variable] int g,i,j; ^ main.c:29:10: warning: unused variable 'flag' [-Wunused-variable] bool flag=false; ^~~~ main.c:28:32: warning: unused variable 'c_actual' [-Wunused-variable] float e_actuala,e_maxima=0,c_actual,w,e_total=0; ^~~~~~~~ main.c:28:21: warning: variable 'e_maxima' set but not used [-Wunused-but-set-variable] float e_actuala,e_maxima=0,c_actual,w,e_total=0; ^~~~~~~~ main.c:28:11: warning: unused variable 'e_actuala' [-Wunused-variable] float e_actuala,e_maxima=0,c_actual,w,e_total=0; ^~~~~~~~~ main.c:35:7: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%d",&g); ^~~~~~~~~~~~~~~~~~ main.c:36:7: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%f",&w); ^~~~~~~~~~~~~~~~~~ main.c:41:10: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%lf %lf",&G_list[i].energie,&G_list[i].cost); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
1103ms524kbTime limit exceeded0
2101ms524kbTime limit exceeded0
34ms393kbWrong answer!0
4101ms524kbTime limit exceeded0
5100ms524kbTime limit exceeded0
6100ms524kbTime limit exceeded0
7101ms262kbTime limit exceeded0
8101ms655kbTime limit exceeded0
9101ms262kbTime limit exceeded0
10103ms524kbTime limit exceeded0
11101ms524kbTime limit exceeded0
12101ms655kbTime limit exceeded0
13100ms655kbTime limit exceeded0
14100ms524kbTime limit exceeded0
15101ms655kbTime limit exceeded0
16103ms655kbTime limit exceeded0
17100ms655kbTime limit exceeded0
18101ms655kbTime limit exceeded0
19101ms655kbTime limit exceeded0
20101ms655kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?