Borderou de evaluare (job #3335032)
| Utilizator | Data | 21 ianuarie 2026 11:35:31 | |
|---|---|---|---|
| Problema | Overdrive | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'const long long int* bkt(const long long int*, const long long int*)':
main.cpp:15:33: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
15 | for(unsigned mask = 0; mask < (1 << length); mask += 1) {
| ~~~~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:45:24: error: 'LLONG_MAX' was not declared in this scope
45 | long long answer = LLONG_MAX;
| ^~~~~~~~~
main.cpp:5:1: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <algorithm>
+++ |+#include <climits>
5 |
main.cpp:56:33: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
56 | if(pos + (1 << pow) < rightLen
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp:64:66: error: expected ';' before '}' token
64 | answer = std::min(answer, sum - left[i] - right[pos])
| ^
| ;
65 | }
| ~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
