Borderou de evaluare (job #1463916)

Utilizator mirupetPetcan Miruna mirupet Data 21 iulie 2015 20:13:13
Problema Copaci Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:35:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &N); ^ user.cpp:37:45: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld", &v[i].x, &v[i].y); ^ user.cpp:37:45: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:59:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld", (A + 2 - nr_pct)/2); ^ user.cpp:32:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("copaci.in","r",stdin); ^ user.cpp:33:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("copaci.out","w",stdout); ^ user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &N); ^ user.cpp:37:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld", &v[i].x, &v[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOkay!10
20ms280kbOkay!10
30ms304kbOkay!10
40ms336kbOkay!10
54ms416kbWrong answer0
68ms556kbWrong answer0
712ms664kbWrong answer0
832ms1164kbWrong answer0
956ms1600kbWrong answer0
1060ms1836kbWrong answer0
Punctaj total40

Ceva nu functioneaza?