Borderou de evaluare (job #2969239)
Utilizator | Data | 22 ianuarie 2023 19:09:44 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void mergeDist(int, int, int&, Punct*, Punct*)':
main.cpp:64:17: error: 'INT_MAX' was not declared in this scope
64 | int max1 = -INT_MAX, max2 = -INT_MAX, mij = (vst+vdr)/2, aux = mindist;
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <iomanip>
+++ |+#include <climits>
7 |
main.cpp:65:20: error: 'mij' was not declared in this scope
65 | mergeDist(vst, mij, max1, newv, oldv);
| ^~~
main.cpp:66:27: error: 'max2' was not declared in this scope; did you mean 'max1'?
66 | mergeDist(mij+1, vdr, max2, newv, oldv);
| ^~~~
| max1
main.cpp:71:56: error: 'aux' was not declared in this scope
71 | while (dr < vdr && oldv[dr+1].y <= oldv[j].y + aux) {
| ^~~
main.cpp:77:54: error: 'aux' was not declared in this scope
77 | while (st <= vdr && oldv[st].y < oldv[j].y - aux) {
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !