Pagini recente » Borderou de evaluare (job #2940858) | Borderou de evaluare (job #2792483) | Borderou de evaluare (job #1012434) | Borderou de evaluare (job #1156274) | Borderou de evaluare (job #2846673)
Borderou de evaluare (job #2846673)
Raport evaluator
Compilare:
main.cpp: In member function 'void rollingHash::init(std::string)':
main.cpp:17:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for ( i = 1; i <= s.size(); i++ ) {
| ~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:84:28: warning: 'prevRank0' may be used uninitialized in this function [-Wmaybe-uninitialized]
84 | if ( i > 0 && (suf[i].rank0 != prevRank0 || suf[i].rank1 != suf[i - 1].rank1))
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:69:16: note: 'prevRank0' was declared here
69 | int n, prevRank0, newRank0, nextInd, k, i;
| ^~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 184kb | Incorect | 0 |
| 2 | 2ms | 184kb | Incorect | 0 |
| 3 | 2ms | 184kb | Incorect | 0 |
| 4 | 83ms | 1323kb | Incorect | 0 |
| 5 | 213ms | 1753kb | Incorect | 0 |
| 6 | 185ms | 1703kb | Incorect | 0 |
| 7 | 214ms | 1818kb | OK | 5 |
| 8 | 156ms | 1802kb | Incorect | 0 |
| 9 | 286ms | 2068kb | OK | 5 |
| 10 | 252ms | 2166kb | Incorect | 0 |
| 11 | 214ms | 2166kb | Incorect | 0 |
| 12 | 2ms | 184kb | OK | 5 |
| 13 | 2ms | 184kb | Incorect | 0 |
| 14 | 2ms | 184kb | Incorect | 0 |
| 15 | 2ms | 184kb | Incorect | 0 |
| 16 | 35ms | 598kb | OK | 5 |
| 17 | 40ms | 598kb | Incorect | 0 |
| 18 | 21ms | 364kb | Incorect | 0 |
| 19 | 21ms | 520kb | Incorect | 0 |
| 20 | 2ms | 184kb | Incorect | 0 |
| Punctaj total | 20 |