Borderou de evaluare (job #1799101)

Utilizator ggaaggaabbiigoteciuc gabriel ggaaggaabbii Data 5 noiembrie 2016 19:21:51
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&n,&gr); ^ user.cpp:10:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:13:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&w[i],&val[i]); ^ user.cpp:13:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:24:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",a[n%2][gr]); ^ user.cpp:10:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&gr); ^ user.cpp:13:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&w[i],&val[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms272kbOK510
20ms276kbOK5
30ms288kbOK515
40ms280kbOK5
50ms276kbOK5
64ms292kbOK510
74ms292kbOK5
88ms304kbOK515
98ms304kbOK5
104ms304kbOK5
11108ms384kbOK515
1284ms392kbOK5
1384ms388kbOK5
14276ms476kbOK515
15348ms476kbOK5
16276ms484kbOK5
17172ms424kbOK50
18Depăşit476kbTime limit exceeded.0
19340ms488kbOK5
20344ms488kbOK5
Punctaj total80

Ceva nu functioneaza?