Pagini recente » Borderou de evaluare (job #804342) | Borderou de evaluare (job #739258) | Borderou de evaluare (job #245934) | Borderou de evaluare (job #2588425) | Borderou de evaluare (job #2159379)
Borderou de evaluare (job #2159379)
Raport evaluator
Compilare:
user.cpp: In function ‘int interesant(int, int)’:
user.cpp:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s[x])&& j<strlen(s[y]);i++)
^
user.cpp:10:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s[x])&& j<strlen(s[y]);i++)
^
user.cpp:12:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j==strlen(s[y]))return true;
^
user.cpp: In function ‘int main()’:
user.cpp:22:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=]
scanf("%s",&s[i]);
^
user.cpp:26:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(strlen(s[i])>Max){Max=strlen(s[i]);poz=i;}
^
user.cpp:27:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if((strlen(s[i])==Max) && strcmp(s[i],s[poz])<0)poz=i;
^
user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("interesant.in","r",stdin);
^
user.cpp:19:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("interesant.out","w",stdout);
^
user.cpp:20:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&p,&n);
^
user.cpp:22:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 4ms | 2052kb | OK. | 5 | 20 |
2 | 4ms | 2120kb | OK. | 5 |
3 | 0ms | 1372kb | OK. | 5 |
4 | 0ms | 1908kb | OK. | 5 |
5 | 0ms | 1388kb | OK. | 3 | 3 |
6 | 64ms | 2180kb | OK. | 3 | 3 |
7 | 0ms | 1388kb | OK. | 3 | 3 |
8 | 108ms | 1852kb | OK. | 3 | 3 |
9 | 72ms | 2304kb | OK. | 4 | 4 |
10 | 312ms | 2200kb | OK. | 4 | 4 |
11 | 60ms | 2204kb | OK. | 4 | 4 |
12 | 320ms | 2232kb | OK. | 4 | 4 |
13 | 324ms | 2288kb | OK. | 4 | 4 |
14 | 352ms | 2280kb | OK. | 5 | 5 |
15 | 280ms | 2216kb | OK. | 5 | 5 |
16 | 400ms | 2244kb | OK. | 5 | 5 |
17 | 348ms | 2196kb | OK. | 5 | 5 |
18 | 416ms | 2200kb | OK. | 5 | 5 |
19 | 436ms | 2276kb | OK. | 5 | 5 |
20 | 580ms | 2228kb | OK. | 6 | 6 |
21 | 580ms | 2216kb | OK. | 6 | 6 |
22 | 544ms | 2204kb | OK. | 6 | 6 |
Punctaj total | 100 |