Borderou de evaluare (job #2710012)

Utilizator KPP17Popescu Paul KPP17 Data 21 februarie 2021 17:37:03
Problema Eliminare Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void B(int, int, int)': main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1) ~^~ main.cpp:11:17: note: in expansion of macro 'm' #define S s, i, m ^ main.cpp:14:76: note: in expansion of macro 'S' void B(Q) {if (i == j) in >> E[i], V[k] = E[i], M[k] = i, A[k] = 1; else B(S), B(D), C(k);} ^ main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1) ~^~ main.cpp:12:14: note: in expansion of macro 'm' #define D d, m+1, j ^ main.cpp:14:82: note: in expansion of macro 'D' void B(Q) {if (i == j) in >> E[i], V[k] = E[i], M[k] = i, A[k] = 1; else B(S), B(D), C(k);} ^ main.cpp: In function 'int I(int, int, int, int)': main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1) ~^~ main.cpp:12:14: note: in expansion of macro 'm' #define D d, m+1, j ^ main.cpp:15:73: note: in expansion of macro 'D' int I(int p, Q) {if (i == j) return i; if (A[s] < p) return I(p - A[s], D); return I(p, S);} ^ main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1) ~^~ main.cpp:11:17: note: in expansion of macro 'm' #define S s, i, m ^ main.cpp:15:89: note: in expansion of macro 'S' int I(int p, Q) {if (i == j) return i; if (A[s] < p) return I(p - A[s], D); return I(p, S);} ^ main.cpp: In function 'void X(int, int, int)': main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1) ~^~ main.cpp:11:17: note: in expansion of macro 'm' #define S s, i, m ^ main.cpp:16:107: note: in expansion of macro 'S' void X(Q) {if (i > b or j < a) return; if (i >= a and j <= b) {if (v <= V[k]) v = V[k], p = M[k];} else X(S), X(D);} ^ main.cpp:8:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] #define m (i+j>>1)
Test Timp executie Memorie folosita Mesaj Punctaj/test
123ms524kbOK10
232ms1179kbIncorect0
3364ms7208kbIncorect0
4529ms7733kbIncorect0
5936ms14680kbIncorect0
6670ms15466kbIncorect0
71236ms16252kbIncorect0
82684ms32133kbIncorect0
92661ms31981kbIncorect0
102744ms32505kbIncorect0
Punctaj total10

Ceva nu functioneaza?