Borderou de evaluare (job #1833293)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 22 decembrie 2016 01:35:18
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:9:5: note: ‘int p [18][60005]’ 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
10ms456kbOK5
28ms888kbOK5
312ms896kbOK5
464ms2780kbOK5
50ms860kbKilled by signal 11(SIGSEGV).0
60ms852kbKilled by signal 11(SIGSEGV).0
70ms856kbKilled by signal 11(SIGSEGV).0
80ms852kbKilled by signal 11(SIGSEGV).0
90ms984kbKilled by signal 11(SIGSEGV).0
100ms992kbKilled by signal 11(SIGSEGV).0
110ms988kbKilled by signal 11(SIGSEGV).0
120ms464kbOK5
130ms484kbOK5
140ms512kbOK5
150ms512kbOK5
1620ms1200kbOK5
1720ms1204kbOK5
188ms820kbOK5
1912ms888kbOK5
208ms892kbOK5
Punctaj total65

Ceva nu functioneaza?