Pagini recente » Borderou de evaluare (job #2811267) | Borderou de evaluare (job #1829913) | Borderou de evaluare (job #2891039) | Borderou de evaluare (job #2159168) | Borderou de evaluare (job #2875366)
Borderou de evaluare (job #2875366)
Raport evaluator
Compilare:
main.cpp: In function 'int cb2(int, int*, int)':
main.cpp:20:12: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | return poz;
| ^~~
main.cpp: In function 'int cb1(int, int*, int)':
main.cpp:25:17: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | return (arr[poz] == x ? poz : -1);
| ^~~
main.cpp: In function 'int cb3(int, int*, int)':
main.cpp:38:12: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
38 | return poz;
| ^~~
main.cpp: In function 'int main()':
main.cpp:59:43: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
59 | fout << cb3(n, arr, x) + 1 << '\n';
| ^~~~
main.cpp:56:43: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
56 | fout << cb2(n, arr, x) + 1 << '\n';
| ^~~~
main.cpp:25:17: warning: 'poz' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | return (arr[poz] == x ? poz : -1);
| ^~~
main.cpp:10:29: note: 'poz' was declared here
10 | int lo = 0, hi = n - 1, poz;
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 184kb | Incorect | 0 | 0 |
2 | 2ms | 184kb | Incorect | 0 | 0 |
3 | 2ms | 184kb | Incorect | 0 | 0 |
4 | 6ms | 290kb | Incorect | 0 | 0 |
5 | 25ms | 389kb | Incorect | 0 | 0 |
6 | 78ms | 778kb | Incorect | 0 |
7 | 122ms | 1114kb | Incorect | 0 | 0 |
8 | 122ms | 1097kb | Incorect | 0 |
9 | 126ms | 1105kb | Incorect | 0 |
10 | 126ms | 1097kb | Incorect | 0 |
Punctaj total | 0 |