Pagini recente » Borderou de evaluare (job #1123096) | Borderou de evaluare (job #3000391) | Borderou de evaluare (job #1962802) | Borderou de evaluare (job #3136862) | Borderou de evaluare (job #3209825)
Borderou de evaluare (job #3209825)
Raport evaluator
Compilare:
main.cpp: In function 'int BinarySearch(int, int)':
main.cpp:33:12: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
33 | return ans;
| ^~~
main.cpp:22:25: note: 'ans' was declared here
22 | int st = 0, dr = n, ans;
| ^~~
main.cpp: In function 'int main()':
main.cpp:67:15: warning: 'idx' may be used uninitialized [-Wmaybe-uninitialized]
67 | while(dp[i] != 0)
| ~~~~^
main.cpp:56:20: note: 'idx' was declared here
56 | int maxim = 0, idx;
| ^~~
main.cpp:52:32: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
52 | prv[i] = lg[dp[i] - 1].second;
| ~~~~~~~~~~~~~~^~~~~~
main.cpp:22:25: note: 'ans' was declared here
22 | int st = 0, dr = n, ans;
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 303kb | Corect! | 10 | 10 |
| 2 | 0ms | 303kb | Corect! | 10 | 10 |
| 3 | 0ms | 303kb | Corect! | 10 | 10 |
| 4 | 0ms | 303kb | Corect! | 10 | 10 |
| 5 | 0ms | 303kb | Corect! | 10 | 10 |
| 6 | 0ms | 303kb | Corect! | 10 | 10 |
| 7 | 0ms | 303kb | Corect! | 10 | 10 |
| 8 | 9ms | 1982kb | Corect! | 10 | 30 |
| 9 | 7ms | 2392kb | Corect! | 10 |
| 10 | 9ms | 2129kb | Corect! | 10 |
| Punctaj total | 100 |