Pagini recente » Borderou de evaluare (job #2438450) | Borderou de evaluare (job #2917398) | Borderou de evaluare (job #1920629) | Borderou de evaluare (job #2632672) | Borderou de evaluare (job #2189620)
Borderou de evaluare (job #2189620)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:43: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^~~~
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:17:49: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:17:51: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^~~~
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:17:57: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^
In file included from user.cpp:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:16:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "rt", stdin);
^
user.cpp:17:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^
user.cpp:17:50: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^
user.cpp:17:58: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "wt", stdout);gets(a);gets(b);na=strlen(a);nb=strlen(b);p1=p2=1;hasha1=hasha2=0;for(int i = 0; i < na; i++){hasha1=(hasha1*p+a[i])%MOD1;hasha2=(hasha2*p+a[i])%MOD2;if (i!=0){p1=(p1*p)%MOD1;p2=(p2*p)%MOD2;}}
^
/tmp/ccIr1XGK.o: In function `main':
user.cpp:(.text.startup+0x49): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 4688kb | OK | 2 | 2 |
2 | 0ms | 4684kb | OK | 2 | 2 |
3 | 0ms | 4692kb | OK | 2 | 2 |
4 | 0ms | 4688kb | OK | 2 | 2 |
5 | 0ms | 4688kb | OK | 2 | 2 |
6 | 0ms | 4688kb | OK | 2 | 2 |
7 | 0ms | 4692kb | OK | 2 | 2 |
8 | 0ms | 4688kb | OK | 2 | 2 |
9 | 0ms | 4688kb | OK | 2 | 2 |
10 | 0ms | 4684kb | OK | 2 | 2 |
11 | 0ms | 4688kb | OK | 2 | 2 |
12 | 0ms | 4688kb | OK | 2 | 2 |
13 | 0ms | 4688kb | OK | 2 | 2 |
14 | 0ms | 4692kb | OK | 2 | 2 |
15 | 0ms | 4688kb | OK | 2 | 2 |
16 | 0ms | 4688kb | OK | 2 | 2 |
17 | 0ms | 4692kb | OK | 2 | 2 |
18 | 0ms | 4692kb | OK | 2 | 2 |
19 | 0ms | 4688kb | OK | 2 | 2 |
20 | 0ms | 4688kb | OK | 2 | 2 |
21 | 40ms | 5644kb | OK | 2 | 20 |
22 | 64ms | 5796kb | OK | 2 |
23 | 56ms | 5736kb | OK | 2 |
24 | 40ms | 5796kb | OK | 2 |
25 | 40ms | 5616kb | OK | 2 |
26 | 60ms | 5796kb | OK | 2 |
27 | 56ms | 5792kb | OK | 2 |
28 | 44ms | 5724kb | OK | 2 |
29 | 48ms | 5636kb | OK | 2 |
30 | 64ms | 4704kb | OK | 2 |
31 | 64ms | 4688kb | OK | 2 | 20 |
32 | 60ms | 5776kb | OK | 2 |
33 | 48ms | 5524kb | OK | 2 |
34 | 60ms | 5796kb | OK | 2 |
35 | 60ms | 5792kb | OK | 2 |
36 | 36ms | 5792kb | OK | 2 |
37 | 60ms | 5784kb | OK | 2 |
38 | 48ms | 5796kb | OK | 2 |
39 | 44ms | 5796kb | OK | 2 |
40 | 48ms | 5728kb | OK | 2 |
41 | 56ms | 5648kb | OK | 2 | 20 |
42 | 44ms | 5680kb | OK | 2 |
43 | 56ms | 5604kb | OK | 2 |
44 | 56ms | 5784kb | OK | 2 |
45 | 44ms | 5800kb | OK | 2 |
46 | 40ms | 5796kb | OK | 2 |
47 | 52ms | 5792kb | OK | 2 |
48 | 64ms | 5792kb | OK | 2 |
49 | 84ms | 5344kb | OK | 2 |
50 | 68ms | 5792kb | OK | 2 |
Punctaj total | 100 |