Pagini recente » Borderou de evaluare (job #560062) | Borderou de evaluare (job #2419287) | Borderou de evaluare (job #2303263) | Borderou de evaluare (job #625111) | Borderou de evaluare (job #1683421)
Borderou de evaluare (job #1683421)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:75:15: warning: unused variable ‘rez’ [-Wunused-variable]
int test, rez, nr, k, c, x, maxim, poz, ap;
^
user.cpp:73:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("procol.in", "r", stdin);
^
user.cpp:74:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("procol.out", "w", stdout);
^
user.cpp:76:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &test);
^
user.cpp:80:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &k, &c);
^
user.cpp:84:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:90:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("procol.in", "r", stdin);
^
user.cpp:91:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("procol.out", "w", stdout);
^
user.cpp:92:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &test, &n, &k, &c);
^
user.cpp:98:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &vv[j]);
^
user.cpp:117:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &k, &c);
^
user.cpp:119:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &vv[i]);
^
user.cpp:140:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &k, &c);
^
user.cpp: In function ‘int bsleft(int, int, int)’:
user.cpp:24:12: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return last;
^
user.cpp: In function ‘int main()’:
user.cpp:106:35: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
v[poz].ans = maxim;
^
user.cpp:100:36: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (v[poz].ans + 1 > maxim)
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
✓ | 1 | 244ms | 1844kb | OK | 10 |
✗ | 2 | 272ms | 1844kb | OK | 10 |
✓ | 3 | 0ms | 292kb | OK | 10 |
✗ | 4 | 44ms | 684kb | OK | 10 |
✗ | 5 | 48ms | 688kb | OK | 10 |
✗ | 6 | 108ms | 292kb | OK | 10 |
✗ | 7 | 0ms | 276kb | OK | 10 |
✓ | 8 | 112ms | 292kb | OK | 10 |
✗ | 9 | 104ms | 284kb | OK | 10 |
✗ | 10 | 140ms | 288kb | OK | 10 |
Punctaj total | 100 |