Pagini recente » Borderou de evaluare (job #127267) | Borderou de evaluare (job #2321766) | Borderou de evaluare (job #1308245) | Borderou de evaluare (job #1671247) | Borderou de evaluare (job #1235956)
Borderou de evaluare (job #1235956)
Raport evaluator
Compilare:
user.cpp: In member function ‘void aho_corasick_automaton::add_word(const string&, int)’:
user.cpp:59:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i)
^
user.cpp: In member function ‘void aho_corasick_automaton::build_fails(int)’:
user.cpp:80:65: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(k && !states[k].transitions[states[nod].letter])
^
user.cpp:87:56: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(states[k].transitions[states[nod].letter])
^
user.cpp:88:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
k=states[k].transitions[states[nod].letter];
^
user.cpp: In member function ‘int aho_corasick_automaton::run_automaton(const string&)’:
user.cpp:104:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i)
^
user.cpp:114:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<states[aux].word.size(); ++j)
^
user.cpp:102:18: warning: unused variable ‘aux’ [-Wunused-variable]
int k=0, aux;
^
user.cpp:118:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:125:42: 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:126:44: 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);
^
user.cpp:130:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 456kb | OK | 5 |
2 | 0ms | 460kb | OK | 5 |
3 | 0ms | 460kb | OK | 5 |
4 | 0ms | 456kb | OK | 5 |
5 | 0ms | 456kb | OK | 5 |
6 | 44ms | 1292kb | OK | 5 |
7 | 80ms | 1552kb | OK | 5 |
8 | 96ms | 1812kb | Incorect | 0 |
9 | 96ms | 2580kb | Incorect | 0 |
10 | 92ms | 1812kb | OK | 5 |
11 | 92ms | 1296kb | OK | 5 |
12 | 92ms | 1816kb | OK | 5 |
13 | 48ms | 900kb | Incorect | 0 |
14 | 64ms | 1296kb | OK | 5 |
15 | 68ms | 1548kb | Incorect | 0 |
16 | 80ms | 1548kb | Incorect | 0 |
17 | Depăşit | 1612kb | Time limit exceeded. | 0 |
18 | Depăşit | 1504kb | Time limit exceeded. | 0 |
19 | 100ms | 2076kb | Incorect | 0 |
20 | Depăşit | 3792kb | Time limit exceeded. | 0 |
Punctaj total | 55 |