Pagini recente » Borderou de evaluare (job #118787) | Borderou de evaluare (job #1731381)
Borderou de evaluare (job #1731381)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:27: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:28: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:30:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:33:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cod);
^
user.cpp:34:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(cod==1) {nr1++;nr++;scanf("%d",&v[nr]);arb[nr1]=nr;poz[nr]=nr1;up_heap(nr1);}
^
user.cpp:35:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(cod==2) {scanf("%d",&x);arb[poz[x]]=arb[nr1];poz[arb[nr1]]=poz[x];nr1--;up_heap(poz[x]);down_heap(poz[x]);}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 280kb | OK | 10 | 10 |
2 | 0ms | 280kb | OK | 10 | 10 |
3 | 0ms | 288kb | OK | 10 | 10 |
4 | 4ms | 320kb | OK | 10 | 10 |
5 | 24ms | 456kb | OK | 10 | 60 |
6 | 52ms | 624kb | OK | 10 |
7 | 104ms | 1448kb | OK | 10 |
8 | 96ms | 1104kb | OK | 10 |
9 | 108ms | 968kb | OK | 10 |
10 | 104ms | 976kb | OK | 10 |
Punctaj total | 100 |