Borderou de evaluare (job #1833292)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 22 decembrie 2016 01:34:46
Problema Ghicit Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 65

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:27: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] nlg+= int(!(i & i - 1)); ^ user.cpp:36:35: warning: capture of variable ‘p’ with non-automatic storage duration [enabled by default] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp:8:5: note: ‘int p [18][120005]’ declared here int p[LG + 1][SPQR], ssfx[SPQR]; ^ user.cpp: In lambda function: user.cpp:36:125: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp:36:164: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] sort(ssfx, ssfx + n, [lg, p](int a, int b) { return (p[lg - 1][a] == p[lg - 1][b]) ? (p[lg - 1][min(n, a + (1 << lg - 1))] < p[lg - 1][min(n, b + (1 << lg - 1))]) : (p[lg - 1][a] < p[lg - 1][b]); } ); ^ user.cpp: In function ‘int main()’: user.cpp:38:115: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (i > 0 && (p[lg - 1][ssfx[i - 1]] != p[lg - 1][ssfx[i]] || p[lg - 1][min(n, ssfx[i - 1] + (1 << lg - 1))] != p[lg - 1][min(n, ssfx[i] + (1 << lg - 1))])) ^ user.cpp:38:161: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (i > 0 && (p[lg - 1][ssfx[i - 1]] != p[lg - 1][ssfx[i]] || p[lg - 1][min(n, ssfx[i - 1] + (1 << lg - 1))] != p[lg - 1][min(n, ssfx[i] + (1 << lg - 1))])) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms468kbOK5
212ms912kbOK5
38ms904kbOK5
464ms2804kbOK5
50ms860kbKilled by signal 11(SIGSEGV).0
60ms860kbKilled by signal 11(SIGSEGV).0
70ms864kbKilled by signal 11(SIGSEGV).0
80ms864kbKilled by signal 11(SIGSEGV).0
90ms988kbKilled by signal 11(SIGSEGV).0
100ms996kbKilled by signal 11(SIGSEGV).0
110ms992kbKilled by signal 11(SIGSEGV).0
120ms472kbOK5
130ms496kbOK5
140ms508kbOK5
150ms520kbOK5
1620ms1208kbOK5
1720ms1212kbOK5
188ms836kbOK5
198ms908kbOK5
208ms904kbOK5
Punctaj total65

Ceva nu functioneaza?