Borderou de evaluare (job #2597238)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 11 aprilie 2020 10:25:19
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:27: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:34:25: note: in expansion of macro 'zeros' for (;pos > 0; pos -= zeros(pos)){ ^~~~~ main.cpp: In function 'int main()': main.cpp:42: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:43: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); ^ main.cpp:44:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:46:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ main.cpp:50:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
33ms262kbOK10
43ms262kbOK10
53ms262kbOK10
63ms131kbOK10
72ms131kbOK10
8400ms1572kbTime limit exceeded0
9403ms1572kbTime limit exceeded0
1091ms1703kbOK10
Punctaj total80

Ceva nu functioneaza?