Pagini recente » Borderou de evaluare (job #2127330) | Borderou de evaluare (job #513924) | Borderou de evaluare (job #2196398) | Borderou de evaluare (job #243597) | Borderou de evaluare (job #1943564)
Borderou de evaluare (job #1943564)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:82:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(i<=30) S[i]=st[C[i]],D[i]=dr[C[i]];
^
user.cpp:82:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(i<=30) S[i]=st[C[i]],D[i]=dr[C[i]];
^
user.cpp:83:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else S[(i-1)%30+1]=max(st[C[i]],S[(i-1)%30+1]),D[(i-1)%30+1]=min(D[(i-1)%30+1],dr[C[i]]);
^
user.cpp:83:99: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else S[(i-1)%30+1]=max(st[C[i]],S[(i-1)%30+1]),D[(i-1)%30+1]=min(D[(i-1)%30+1],dr[C[i]]);
^
user.cpp:74:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&T);
^
user.cpp:77:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d\n",&N,&M);
^
user.cpp:78:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(C+1,100005,f);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘int main()’ at user.cpp:78:28:
/usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 8ms | 264kb | OK | 10 | 20 |
2 | 16ms | 264kb | OK | 10 |
3 | 176ms | 264kb | OK | 10 | 30 |
4 | 192ms | 268kb | OK | 10 |
5 | 204ms | 268kb | OK | 10 |
6 | 176ms | 268kb | OK | 10 | 20 |
7 | 104ms | 272kb | OK | 10 |
8 | 268ms | 364kb | OK | 10 | 30 |
9 | 280ms | 360kb | OK | 10 |
10 | 280ms | 356kb | OK | 10 |
Punctaj total | 100 |