Borderou de evaluare (job #1470688)

Utilizator Liviu98Dinca Liviu Liviu98 Data 11 august 2015 21:44:28
Problema Arbore3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void Read()’: user.cpp:13:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&N,&Sum); ^ user.cpp:13:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:16:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&x); ^ user.cpp:18:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&cost[i]); ^ user.cpp: In function ‘int main()’: user.cpp:75:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",sol); ^ user.cpp: In function ‘void Read()’: user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore3.in","r",stdin); ^ user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&Sum); ^ user.cpp:16:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:18:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&cost[i]); ^ user.cpp: In function ‘int main()’: user.cpp:74:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore3.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
136ms23920kbOK10
236ms23952kbOK10
368ms24660kbOK10
4296ms28184kbOK10
5580ms32164kbOK10
6748ms35364kbOK10
7856ms37320kbOK10
8960ms38184kbOK10
9752ms38400kbKilled by signal 11(SIGSEGV).0
10768ms38404kbKilled by signal 11(SIGSEGV).0
Punctaj total80

Ceva nu functioneaza?