Borderou de evaluare (job #2036683)

Utilizator mari2001Maria Ionescu mari2001 Data 10 octombrie 2017 22:30:23
Problema Hansha Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int solve(int, int)’: user.cpp:18:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (st!=v[d]) ^ user.cpp:23:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (dr!=v[d]+(1<<d)/2) ^ user.cpp:7:5: warning: unused variable ‘s’ [-Wunused-variable] int s=1,d=(int)log2((double)dr)+1; ^ user.cpp:28:8: warning: no return statement in function returning non-void [-Wreturn-type] rasp++;} ^ user.cpp: In function ‘int main()’: user.cpp:30:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hansha.in","r",stdin); ^ user.cpp:31:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hansha.out","w",stdout); ^ user.cpp:33:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:35:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ user.cpp:37:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ user.cpp:38:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&st,&dr); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit280kbTime limit exceeded.0
2Depăşit276kbTime limit exceeded.0
3356ms280kbOK20
4Depăşit280kbTime limit exceeded.0
5Depăşit280kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?