Borderou de evaluare (job #2014274)

Utilizator Mircea_DonciuDonciu Mircea Mircea_Donciu Data 23 august 2017 12:59:03
Problema Bile5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:44:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d", &S[i], &P[i]); ^ user.cpp:44:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] fprintf(stderr, "0 (y=%ld) => +1 ; platou: %d - %d (y=%ld); -1 => xmax=%d (y=%ld); %d\n", y1, x1 - d1, x2 + d2, yx1, xmax, y2, (y2 > y1)); ^ user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=] user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘long int’ [-Wformat=] user.cpp:37:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bile5.in", "r", stdin); ^ user.cpp:38:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bile5.out", "w", stdout); ^ user.cpp:39:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &T); ^ user.cpp:42:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &N); ^ user.cpp:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &S[i], &P[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms272kbOK10
30ms268kbOK10
44ms268kbOK10
516ms280kbOK10
680ms304kbOK10
788ms324kbOK10
8132ms324kbOK10
9124ms324kbOK10
10120ms324kbOK10
Punctaj total100

Ceva nu functioneaza?