Borderou de evaluare (job #1855604)

Utilizator borscalinCalin-Stefan Georgescu borscalin Data 23 ianuarie 2017 20:03:13
Problema Permutari 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:69:33: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for (; poz<=n; poz=poz+(poz &(poz-1)^poz)) ^ user.cpp: In function ‘int querry(int)’: user.cpp:76:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(; poz; poz=poz-(poz &(poz-1)^poz)) ^ user.cpp: In function ‘int main()’: user.cpp:83:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm3.in","r",stdin); ^ user.cpp:84:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm3.out","w",stdout); ^ user.cpp:86:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:88:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ user.cpp:90:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a); ^ user.cpp: In function ‘int bs(int)’: user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbOK!10
20ms308kbOK!10
3Depăşit272kbTime limit exceeded.0
4Depăşit264kbTime limit exceeded.0
5Depăşit264kbTime limit exceeded.0
6Depăşit260kbTime limit exceeded.0
7Depăşit268kbTime limit exceeded.0
8Depăşit264kbTime limit exceeded.0
9Depăşit268kbTime limit exceeded.0
10Depăşit268kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?