Pagini recente » Borderou de evaluare (job #2241651) | Borderou de evaluare (job #2124211) | Borderou de evaluare (job #1958436) | Borderou de evaluare (job #2122221) | Borderou de evaluare (job #1560407)
Borderou de evaluare (job #1560407)
Raport evaluator
Compilare:
user.cpp: In member function ‘std::pair<int, int> SufA::range(const string&)’:
user.cpp:149:29: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
next = lr == elcp[i+lr] < cp;
^
user.cpp:152:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (cp < t.size() && t[cp] == s[k+cp]) cp++;
^
user.cpp:153:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cp == t.size()) {
^
user.cpp:177:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (cp < t.size()) {
^
user.cpp:183:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (elcp[i-1] < t.size()) {
^
user.cpp:197:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (elcp[i] < t.size()) {
^
user.cpp: In instantiation of ‘void SufA::sais(int, const T&, int) [with T = std::basic_string<char>]’:
user.cpp:106:29: required from here
user.cpp:24:5: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|| s[i] == s[i+1] && t[i+1];
^
user.cpp: In instantiation of ‘void SufA::sais(int, const T&, int) [with T = int*]’:
user.cpp:84:22: required from ‘void SufA::sais(int, const T&, int) [with T = std::basic_string<char>]’
user.cpp:106:29: required from here
user.cpp:24:5: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
user.cpp: In function ‘int main()’:
user.cpp:219:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.in", "r", stdin);
^
user.cpp:220:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ahocorasick.out", "w", stdout);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 480kb | OK | 5 |
| 2 | 0ms | 480kb | OK | 5 |
| 3 | 0ms | 488kb | Incorect | 0 |
| 4 | 0ms | 480kb | OK | 5 |
| 5 | 0ms | 480kb | OK | 5 |
| 6 | Depăşit | 8020kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 6468kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 7112kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 6784kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 6776kb | Time limit exceeded. | 0 |
| 11 | Depăşit | 7120kb | Time limit exceeded. | 0 |
| 12 | Depăşit | 7112kb | Time limit exceeded. | 0 |
| 13 | 84ms | 7788kb | OK | 5 |
| 14 | 100ms | 10164kb | OK | 5 |
| 15 | Depăşit | 10164kb | Time limit exceeded. | 0 |
| 16 | Depăşit | 10164kb | Time limit exceeded. | 0 |
| 17 | Depăşit | 13072kb | Time limit exceeded. | 0 |
| 18 | Depăşit | 5880kb | Time limit exceeded. | 0 |
| 19 | Depăşit | 5884kb | Time limit exceeded. | 0 |
| 20 | 80ms | Depăşit | Memory limit exceeded. | 0 |
| Punctaj total | 30 |