Pagini recente » Borderou de evaluare (job #741892) | Borderou de evaluare (job #1849237) | Borderou de evaluare (job #1833739) | Borderou de evaluare (job #981098) | Borderou de evaluare (job #2264438)
Borderou de evaluare (job #2264438)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:15:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vila2.in", "r", stdin);
^
main.cpp:16:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vila2.out", "w", stdout);
^
main.cpp:18:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:21:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
main.cpp:41:26: warning: 'maxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(i>=k && a[maxi]-a[mini] > maxg)
~~~~~~^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 4ms | 131kb | OK | 10 |
| 2 | 5ms | 131kb | OK | 10 |
| 3 | 8ms | 131kb | OK | 10 |
| 4 | 11ms | 262kb | OK | 10 |
| 5 | 11ms | 262kb | OK | 10 |
| 6 | 16ms | 299kb | OK | 10 |
| 7 | 25ms | 417kb | OK | 10 |
| 8 | 20ms | 434kb | OK | 10 |
| 9 | 31ms | 520kb | OK | 10 |
| 10 | 31ms | 569kb | OK | 10 |
| Punctaj total | 100 |