Pagini recente » Borderou de evaluare (job #32175) | Borderou de evaluare (job #62043) | Borderou de evaluare (job #3241645) | Borderou de evaluare (job #402036) | Borderou de evaluare (job #2477997)
Borderou de evaluare (job #2477997)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:6:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &n, &k);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:10:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &x);
^~~~~~~~~~~~~~~~~~~~~
main.c:23:5: warning: 'pmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
fprintf(fout, "%d %d %d", pmax + 1, max + 1, smax);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:23:5: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
main.c:17:27: warning: 'pc' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (sc > smax && i-pc>=k) {
~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Wrong answer! | 0 |
2 | 2ms | 131kb | Wrong answer! | 0 |
3 | 2ms | 131kb | Wrong answer! | 0 |
4 | 2ms | 131kb | Wrong answer! | 0 |
5 | 5ms | 131kb | OK! | 10 |
6 | 6ms | 131kb | OK! | 10 |
7 | 8ms | 131kb | OK! | 10 |
8 | 11ms | 131kb | OK! | 10 |
9 | 14ms | 131kb | Wrong answer! | 0 |
10 | 21ms | 131kb | Wrong answer! | 0 |
Punctaj total | 40 |