Pagini recente » Borderou de evaluare (job #1206779) | Borderou de evaluare (job #1850003) | Borderou de evaluare (job #115738) | Borderou de evaluare (job #3254632) | Borderou de evaluare (job #1618722)
Borderou de evaluare (job #1618722)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
while(R<i || ap[a[i]]>k && R<=n)
^
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("maxk.in","r",stdin);
^
user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxk.out","w",stdout);
^
user.cpp:10: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:11:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;++i) scanf("%d",&a[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 288kb | OK | 10 |
| 2 | 0ms | 280kb | OK | 10 |
| 3 | 0ms | 280kb | OK | 10 |
| 4 | 264ms | 4176kb | OK | 10 |
| 5 | 12ms | 480kb | OK | 10 |
| 6 | 16ms | 524kb | OK | 10 |
| 7 | 16ms | 536kb | OK | 10 |
| 8 | 16ms | 484kb | OK | 10 |
| 9 | 16ms | 508kb | OK | 10 |
| 10 | 296ms | 4176kb | OK | 10 |
| Punctaj total | 100 |