Pagini recente » Borderou de evaluare (job #2601276) | Borderou de evaluare (job #147092) | Borderou de evaluare (job #408280) | Borderou de evaluare (job #163209) | Borderou de evaluare (job #1252595)
Borderou de evaluare (job #1252595)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:42: warning: unused variable ‘x’ [-Wunused-variable]
int n, max1 = -1, max2 = -1, max3 = -1, x, i, p, v[54555], poz2, poz3;
^
user.cpp:6:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pba.in", "r", stdin);
^
user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pba.out", "w", stdout);
^
user.cpp:11:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp:29:36: warning: ‘poz2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[i] > max1 && i != poz3 && i != poz2)
^
user.cpp:23:18: warning: ‘poz3’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[i] > max2 && i != poz3)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 252kb | OK | 10 | 0 |
2 | 0ms | 256kb | OK | 10 |
3 | 0ms | 248kb | OK | 10 |
4 | 0ms | 248kb | OK | 10 |
5 | 0ms | 256kb | Incorect | 0 |
6 | 0ms | 288kb | Incorect | 0 |
7 | 4ms | 344kb | Incorect | 0 |
8 | 8ms | 396kb | Incorect | 0 |
9 | 12ms | 444kb | Incorect | 0 |
10 | 16ms | 452kb | Incorect | 0 |
Punctaj total | 0 |