Borderou de evaluare (job #2243648)

Utilizator Spuky9Matei Vlad Spuky9 Data 21 septembrie 2018 09:20:38
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:30: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:32:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%1d", &elevi[i].amigo); ^ user.cpp:34:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%1d", &elevi[i].enemy); ^ user.cpp:69: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:27: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:30: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:32: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:34:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%1d", &elevi[i].enemy); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms876kbIncorect0
20ms876kbIncorect0
30ms756kbIncorect0
40ms860kbIncorect0
50ms808kbIncorect0
628ms1004kbIncorect0
752ms1244kbIncorect0
872ms1476kbIncorect0
996ms1772kbIncorect0
10100ms1772kbIncorect0
Punctaj total0

Ceva nu functioneaza?