Borderou de evaluare (job #1957937)

Utilizator Daria09Florea Daria Daria09 Data 7 aprilie 2017 21:10:15
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:31:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double*’ [-Wformat=] scanf("%d%d",&b[i].x,&b[i].y); ^ user.cpp:31:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double*’ [-Wformat=] user.cpp:45:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",sol); ^ user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.in","r",stdin); ^ user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.out","w",stdout); ^ user.cpp:28:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:31:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&b[i].x,&b[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbOk!10
2Depăşit6272kbTime limit exceeded.0
34ms500kbOk!10
4Depăşit6264kbTime limit exceeded.0
54ms504kbOk!10
612ms580kbOk!10
7Depăşit6272kbTime limit exceeded.0
8164ms1912kbOk!10
9Depăşit6268kbTime limit exceeded.0
10Depăşit6112kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?