Pagini recente » Borderou de evaluare (job #1569981) | Borderou de evaluare (job #2031456) | Borderou de evaluare (job #3150111) | Borderou de evaluare (job #1570645) | Borderou de evaluare (job #1207269)
Borderou de evaluare (job #1207269)
Raport evaluator
Compilare:
user.cpp: In function ‘void godown(int)’:
user.cpp:67:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(nod*2 > heap.size()-1)
^
user.cpp:69:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
nextnod = nod*2 + (nod*2+1<=heap.size()-1 and v[heap[nod*2]] > v[heap[nod*2+1]]);
^
user.cpp: In function ‘int main()’:
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.in","r",stdin);
^
user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.out","w",stdout);
^
user.cpp:23:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:26:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cod);
^
user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 268kb | OK | 10 | 10 |
| 2 | 0ms | 272kb | OK | 10 | 10 |
| 3 | 0ms | 284kb | OK | 10 | 10 |
| 4 | 4ms | 372kb | OK | 10 | 10 |
| 5 | 28ms | 616kb | OK | 10 | 60 |
| 6 | 56ms | 796kb | OK | 10 |
| 7 | 108ms | 1412kb | OK | 10 |
| 8 | 100ms | 1316kb | OK | 10 |
| 9 | 120ms | 1316kb | OK | 10 |
| 10 | 120ms | 1320kb | OK | 10 |
| Punctaj total | 100 |