Pagini recente » Borderou de evaluare (job #1048891) | Borderou de evaluare (job #2297266) | Borderou de evaluare (job #2289002) | Borderou de evaluare (job #454939) | Borderou de evaluare (job #1552208)
Borderou de evaluare (job #1552208)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:75:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(tm->po[s2[j]]==NULL)
^
user.cpp:77:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[s2[j]]=new nod();
^
user.cpp:78:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[s2[j]]->tata=tm;
^
user.cpp:79:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[s2[j]]->ch=s2[j];
^
user.cpp:81:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm=tm->po[s2[j]];
^
user.cpp:92:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(tm->po[si[i]]==NULL && tm!=root)
^
user.cpp:96:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(tm->po[si[i]]!=NULL)
^
user.cpp:98:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm=tm->po[si[i]];
^
user.cpp:62:17: warning: unused variable ‘ans’ [-Wunused-variable]
int n,i,j,l,ans=0;
^
user.cpp:60:40: 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:61:42: 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:65:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(si+1);
^
user.cpp:66:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:69:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s2+1);
^
/tmp/cccgWkWc.o: In function `main':
user.cpp:(.text.startup+0xa6): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 5 |
2 | 0ms | 292kb | OK | 5 |
3 | 0ms | 292kb | OK | 5 |
4 | 0ms | 288kb | OK | 5 |
5 | 0ms | 280kb | OK | 5 |
6 | 8ms | 900kb | OK | 5 |
7 | 12ms | 1228kb | OK | 5 |
8 | 16ms | 1620kb | OK | 5 |
9 | 12ms | 1784kb | OK | 5 |
10 | 12ms | 1424kb | OK | 5 |
11 | 12ms | 1220kb | OK | 5 |
12 | 12ms | 1580kb | OK | 5 |
13 | 4ms | 760kb | OK | 5 |
14 | 4ms | 848kb | OK | 5 |
15 | 8ms | 1152kb | OK | 5 |
16 | 8ms | 1216kb | OK | 5 |
17 | 8ms | 1236kb | OK | 5 |
18 | 12ms | 1244kb | OK | 5 |
19 | 12ms | 1712kb | OK | 5 |
20 | 40ms | 2708kb | OK | 5 |
Punctaj total | 100 |