Borderou de evaluare (job #2598196)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 11 aprilie 2020 12:09:20
Problema PermutariAB Status done
Runda Fmi No Stress 9 Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'void add(int)': main.cpp:18:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zeros(x) x&(x-1)^x ^ main.cpp:48:28: note: in expansion of macro 'zeros' for (;pos < NMAX; pos += zeros(pos)){ ^~~~~ main.cpp: In function 'int query(int)': main.cpp:18:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zeros(x) x&(x-1)^x ^ main.cpp:55:25: note: in expansion of macro 'zeros' for (;pos > 0; pos -= zeros(pos)){ ^~~~~ main.cpp: In function 'int main()': main.cpp:63:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("permutariab.in","r",stdin); ^ main.cpp:64:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("permutariab.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms262kbOK10
22ms131kbOK10
33ms262kbOK10
43ms262kbOK10
53ms262kbOK10
62ms262kbOK10
72ms131kbOK10
8503ms2621kbTime limit exceeded0
9500ms2621kbTime limit exceeded0
1017ms2752kbOK10
Punctaj total80

Ceva nu functioneaza?