Pagini recente » Borderou de evaluare (job #78119) | Borderou de evaluare (job #2131266) | Borderou de evaluare (job #2827637) | Borderou de evaluare (job #2589445) | Borderou de evaluare (job #1822056)
Borderou de evaluare (job #1822056)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve()’:
user.cpp:261:42: warning: too many arguments for format [-Wformat-extra-args]
fprintf(g, "%d \n", bitsMax(), mx);
^
user.cpp:222:16: warning: unused variable ‘j’ [-Wunused-variable]
int i, mx, j;
^
user.cpp:220:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d%d", &k, &n);
^
user.cpp:225:102: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &bit[i]), bit2[i].bit = bit[i], bit2[i].poz = i, sum[i] = sum[i - 1] + bit[i];
^
user.cpp:233:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d%d", &a, &b);
^
user.cpp: In function ‘int bitsMax()’:
user.cpp:157:25: warning: ‘pozb’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(pozb == poz)
^
user.cpp:155:38: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
bits[poz] = 1;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 256kb | Incorect | 0 |
2 | 0ms | 256kb | Incorect | 0 |
3 | 4ms | 256kb | Incorect | 0 |
4 | 4ms | 248kb | Incorect | 0 |
5 | 212ms | 252kb | Incorect | 0 |
6 | 240ms | 252kb | Incorect | 0 |
7 | 204ms | 256kb | Incorect | 0 |
8 | 212ms | 252kb | Incorect | 0 |
9 | 212ms | 248kb | Incorect | 0 |
10 | 212ms | 252kb | Incorect | 0 |
Punctaj total | 0 |