Borderou de evaluare (job #1871936)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 7 februarie 2017 19:27:08
Problema Frequent Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘void make_sa()’: user.cpp:100:31: warning: capture of variable ‘pos’ with non-automatic storage duration [enabled by default] sort(sa, sa + n, [lg, pos](const int &a, const int &b) { ^ user.cpp:11:5: note: ‘int pos [19][400005]’ declared here int pos[LG + 1][NMAX], ^ user.cpp: In lambda function: user.cpp:102:50: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] (pos[lg - 1][min(a + (1 << lg - 1), n)] < pos[lg - 1][min(b + (1 << lg - 1), n)]) : ^ user.cpp:102:91: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] (pos[lg - 1][min(a + (1 << lg - 1), n)] < pos[lg - 1][min(b + (1 << lg - 1), n)]) : ^ user.cpp: In function ‘void make_sa()’: user.cpp:107:101: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (pos[lg - 1][sa[i]] != pos[lg - 1][sa[i - 1]] || pos[lg - 1][min(n, sa[i] + (1 << lg - 1))] != pos[lg - 1][min(n, sa[i - 1] + (1 << lg - 1))]) ^ user.cpp:107:151: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if (pos[lg - 1][sa[i]] != pos[lg - 1][sa[i - 1]] || pos[lg - 1][min(n, sa[i] + (1 << lg - 1))] != pos[lg - 1][min(n, sa[i - 1] + (1 << lg - 1))]) ^ user.cpp:84:9: warning: unused variable ‘p’ [-Wunused-variable] int p; ^ user.cpp: In function ‘void make_ap()’: user.cpp:112:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, p = 0; i < v.size(); ++i) ^ user.cpp:113:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j <= v[i].size(); ++j, ++p) ^ user.cpp: In function ‘void trick()’: user.cpp:142:51: warning: capture of variable ‘lcv’ with non-automatic storage duration [enabled by default] sort(sorted_lcp.rbegin(), sorted_lcp.rend(), [lcv](const int &a, const int &b) { ^ user.cpp:12:5: note: ‘int lcv [400005]’ declared here lcv[NMAX], ^ user.cpp: In function ‘int main()’: user.cpp:197:29: warning: operation on ‘np’ may be undefined [-Wsequence-point] str[np++] = 256 + np; } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms608kbOK5
20ms676kbOK5
34ms860kbOK5
452ms2236kbOK5
524ms1732kbOK5
640ms2220kbOK5
7256ms10024kbOK5
8824ms14124kbOK5
9420ms13328kbOK5
10700ms15524kbOK5
11460ms15072kbOK5
12876ms17172kbOK5
13576ms16644kbOK5
141268ms19696kbOK5
15972ms22360kbOK5
161088ms27104kbOK5
171744ms31664kbOK5
18Depăşit32128kbTime limit exceeded.0
19Depăşit35276kbTime limit exceeded.0
20Depăşit42352kbTime limit exceeded.0
Punctaj total85

Ceva nu functioneaza?