Pagini recente » Borderou de evaluare (job #734991) | Borderou de evaluare (job #673663) | Borderou de evaluare (job #2948910) | Borderou de evaluare (job #126876) | Borderou de evaluare (job #1720916)
Borderou de evaluare (job #1720916)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:45: warning: unused variable ‘nr’ [-Wunused-variable]
int n,k,j,maxh=-1,l1,l2,elem=100000,d,i,nr=0;
^
user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("copaci2.in","r",stdin);
^
user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("copaci2.out","w",stdout);
^
user.cpp:26:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:28:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&h[i],&c[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 104ms | 300kb | OK | 10 |
2 | 0ms | 292kb | OK | 10 |
3 | 0ms | 292kb | OK | 10 |
4 | 0ms | 300kb | OK | 10 |
5 | 4ms | 300kb | OK | 10 |
6 | 104ms | 304kb | OK | 10 |
7 | 36ms | 296kb | OK | 10 |
8 | 52ms | 296kb | OK | 10 |
9 | 60ms | 300kb | OK | 10 |
10 | 84ms | 300kb | OK | 10 |
Punctaj total | 100 |