Borderou de evaluare (job #1799099)

Utilizator ggaaggaabbiigoteciuc gabriel ggaaggaabbii Data 5 noiembrie 2016 19:19:50
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:11: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:11:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14: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:14:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:11: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:14: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
10ms484kbOK510
20ms488kbOK5
30ms500kbOK515
40ms496kbOK5
50ms496kbOK5
64ms512kbOK510
74ms508kbOK5
88ms520kbOK515
98ms520kbOK5
108ms516kbOK5
11108ms600kbOK515
1284ms608kbOK5
1384ms608kbOK5
14272ms692kbOK515
15348ms696kbOK5
16272ms696kbOK5
17172ms632kbOK50
18Depăşit684kbTime limit exceeded.0
19340ms700kbOK5
20344ms704kbOK5
Punctaj total80

Ceva nu functioneaza?