Pagini recente » Borderou de evaluare (job #2698507) | Cod sursa (job #2408856) | Borderou de evaluare (job #2110886) | Borderou de evaluare (job #1746821) | Borderou de evaluare (job #1871924)
Borderou de evaluare (job #1871924)
Raport evaluator
Compilare:
user.cpp: In function ‘void make_sa()’:
user.cpp:101: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:103: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:103: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:108: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:108: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:85:9: warning: unused variable ‘p’ [-Wunused-variable]
int p;
^
user.cpp: In function ‘void make_ap()’:
user.cpp:113:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0, p = 0; i < v.size(); ++i)
^
user.cpp:114: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 |
| 1 | 0ms | 516kb | OK | 5 |
| 2 | 0ms | 580kb | OK | 5 |
| 3 | 4ms | 768kb | OK | 5 |
| 4 | 28ms | 2152kb | OK | 5 |
| 5 | 20ms | 1640kb | OK | 5 |
| 6 | 32ms | 2128kb | OK | 5 |
| 7 | 224ms | 10124kb | OK | 5 |
| 8 | 444ms | 14032kb | OK | 5 |
| 9 | 368ms | 13264kb | OK | 5 |
| 10 | 492ms | 15412kb | OK | 5 |
| 11 | 412ms | 15004kb | OK | 5 |
| 12 | 572ms | 17052kb | OK | 5 |
| 13 | 496ms | 16608kb | OK | 5 |
| 14 | 672ms | 19616kb | OK | 5 |
| 15 | 848ms | 22256kb | OK | 5 |
| 16 | 984ms | 27088kb | OK | 5 |
| 17 | 1292ms | 31344kb | OK | 5 |
| 18 | 1540ms | 31844kb | OK | 5 |
| 19 | 1536ms | 35172kb | OK | 5 |
| 20 | Depăşit | 45392kb | Time limit exceeded. | 0 |
| Punctaj total | 95 |