Borderou de evaluare (job #2243671)

Utilizator Spuky9Matei Vlad Spuky9 Data 21 septembrie 2018 10:04:50
Problema Grup Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:31:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &elevi[i].absences); ^ user.cpp:33:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%1d", &elevi[i].amigo); ^ user.cpp:35:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%1d", &elevi[i].enemy); ^ user.cpp:115:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", minAbsences); ^ user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("grup.in","r",stdin); ^ user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("grup.out","w",stdout); ^ user.cpp:28:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &n, &required, &k1, &k2); ^ user.cpp:31:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &elevi[i].absences); ^ user.cpp:33:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%1d", &elevi[i].amigo); ^ user.cpp:35:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%1d", &elevi[i].enemy); ^ user.cpp:102:112: warning: ‘victim2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (elevi[accused1].absences + elevi[accused2].absences > elevi[victim1].absences + elevi[victim2].absences) ~~~~~~~~~~~~~~~^~~~~~~~ user.cpp:102:86: warning: ‘victim1’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (elevi[accused1].absences + elevi[accused2].absences > elevi[victim1].absences + elevi[victim2].absences) ~~~~~~~~~~~~~~~^~~~~~~~ user.cpp:102:60: warning: ‘accused2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (elevi[accused1].absences + elevi[accused2].absences > elevi[victim1].absences + elevi[victim2].absences) ~~~~~~~~~~~~~~~~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms864kbIncorect0
20ms860kbIncorect0
30ms792kbIncorect0
40ms756kbIncorect0
50ms800kbIncorect0
6Depăşit1000kbTime limit exceeded.0
7Depăşit1236kbTime limit exceeded.0
8Depăşit1472kbTime limit exceeded.0
9Depăşit1768kbTime limit exceeded.0
10Depăşit1764kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?