Borderou de evaluare (job #3039321)
Utilizator | Data | 28 martie 2023 13:45:06 | |
---|---|---|---|
Problema | Knumere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:28:21: error: 'INT_MIN' was not declared in this scope
28 | long long st = -INT_MIN, dr = INT_MAX, med, sol = -1;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <vector>
+++ |+#include <climits>
5 | using namespace std;
main.cpp:29:18: error: 'dr' was not declared in this scope
29 | while (st <= dr)
| ^~
main.cpp:31:9: error: 'med' was not declared in this scope
31 | med = ((st + dr) >> 1);
| ^~~
main.cpp:34:13: error: 'sol' was not declared in this scope
34 | sol = med;
| ^~~
main.cpp:40:13: error: 'sol' was not declared in this scope
40 | cout << sol;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !