Pagini recente » Borderou de evaluare (job #900080) | Borderou de evaluare (job #2619371) | Borderou de evaluare (job #55482) | Borderou de evaluare (job #3234483) | Borderou de evaluare (job #2234586)
Borderou de evaluare (job #2234586)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int Qnt(int)’:
user.cpp:22:9: warning: unused variable ‘i’ [-Wunused-variable]
int i,a,st,dr,mid,b,kth;
^
user.cpp: In function ‘void Try()’:
user.cpp:65:9: warning: unused variable ‘i’ [-Wunused-variable]
int i,pos,kth,f,st,dr,mid;
^
user.cpp:65:11: warning: unused variable ‘pos’ [-Wunused-variable]
int i,pos,kth,f,st,dr,mid;
^~~
user.cpp:66:11: warning: unused variable ‘dr0’ [-Wunused-variable]
int64 dr0,dr1;
^~~
user.cpp:66:15: warning: unused variable ‘dr1’ [-Wunused-variable]
int64 dr0,dr1;
^~~
user.cpp: In function ‘int main()’:
user.cpp:86:21: warning: unused variable ‘cnt’ [-Wunused-variable]
int i,st,dr,mid,cnt,nr0,nrr0,lim;
^~~
user.cpp:83:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("copii3.in","r",stdin);
^
user.cpp:84:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("copii3.out","w",stdout);
^
user.cpp:89:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&Q);
^
user.cpp:90:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",str);
^
user.cpp:109:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&L,&R);
^
user.cpp: In function ‘long long int Qnt(int)’:
user.cpp:60:31: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return st1 - st0 + (b > 0 ? dr0 - dr1 : 0);
~~~~~~~^~~~~~~~~~~~~~~~
user.cpp:51:31: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
st0 = sum_0[L-1] - sum_0[a-1];
~^~
user.cpp: In function ‘void Try()’:
user.cpp:79:27: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized]
res = min(res, sum_0[f] - sum_0[R] - (sum_1[R] - sum_1[L-1]));
~~~~~~~^
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
✓ | 1 | 8ms | 11560kb | OK | 5 | 20 |
✓ | 2 | 8ms | 11560kb | OK | 5 |
✓ | 3 | 8ms | 11556kb | OK | 5 |
✓ | 4 | 8ms | 11560kb | OK | 5 |
✓ | 5 | 108ms | 13640kb | OK | 5 | 20 |
✓ | 6 | 108ms | 13640kb | OK | 5 |
✓ | 7 | 108ms | 13648kb | OK | 5 |
✓ | 8 | 104ms | 13644kb | OK | 5 |
✓ | 9 | 136ms | 13680kb | OK | 5 | 20 |
✓ | 10 | 136ms | 13680kb | OK | 5 |
✓ | 11 | 136ms | 13684kb | OK | 5 |
✓ | 12 | 136ms | 13684kb | OK | 5 |
✗ | 13 | 516ms | 13684kb | OK | 5 | 20 |
✗ | 14 | 516ms | 13684kb | OK | 5 |
✗ | 15 | 520ms | 13684kb | OK | 5 |
✓ | 16 | 520ms | 13684kb | OK | 5 |
✓ | 17 | 828ms | 14128kb | OK | 5 | 20 |
✗ | 18 | 824ms | 14124kb | OK | 5 |
✗ | 19 | 828ms | 14124kb | OK | 5 |
✗ | 20 | 820ms | 14128kb | OK | 5 |
Punctaj total | 100 |