Borderou de evaluare (job #1515797)
Utilizator | Data | 2 noiembrie 2015 10:21:09 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:32:24: error: ‘coord2’ has not been declared
double dist(coords c1, coord2 c2)
^
user.cpp: In function ‘double dist(coords, int)’:
user.cpp:32:33: error: ‘double dist(coords, int)’ redeclared as different kind of symbol
double dist(coords c1, coord2 c2)
^
user.cpp:17:8: error: previous declaration of ‘double dist [3010]’
double dist[NMax];
^
user.cpp:34:18: error: no match for ‘operator[]’ (operand types are ‘coords [3010]’ and ‘coords’)
return (coord[c1].x-coord[c2].x) * (coord[c1].x-coord[c2].x) +
^
user.cpp:34:46: error: no match for ‘operator[]’ (operand types are ‘coords [3010]’ and ‘coords’)
return (coord[c1].x-coord[c2].x) * (coord[c1].x-coord[c2].x) +
^
user.cpp:35:18: error: no match for ‘operator[]’ (operand types are ‘coords [3010]’ and ‘coords’)
(coord[c1].y-coord[c2].y) * (coord[c1].y-coord[c2].y);
^
user.cpp:35:46: error: no match for ‘operator[]’ (operand types are ‘coords [3010]’ and ‘coords’)
(coord[c1].y-coord[c2].y) * (coord[c1].y-coord[c2].y);
^
user.cpp: In function ‘int main()’:
user.cpp:40:8: error: ‘nodes’ was not declared in this scope
f>>nodes>>edges;
^
user.cpp:40:15: error: ‘edges’ was not declared in this scope
f>>nodes>>edges;
^
user.cpp:42:20: error: ‘ycoord’ was not declared in this scope
f>>coord[1].x>>ycoord[1].y;
^
user.cpp:46:9: error: ‘d’ was not declared in this scope
d[i] = dist(xcoord[1].x, coord[1].y, coord[i].x, coord[i].y);
^
user.cpp:46:21: error: ‘xcoord’ was not declared in this scope
d[i] = dist(xcoord[1].x, coord[1].y, coord[i].x, coord[i].y);
^
user.cpp:46:68: error: ‘dist’ cannot be used as a function
d[i] = dist(xcoord[1].x, coord[1].y, coord[i].x, coord[i].y);
^
user.cpp:67:53: error: ‘dist’ cannot be used as a function
int dTmp = dist(coord[crtNode], coord[i]);
^
user.cpp:68:45: error: ‘d’ was not declared in this scope
if (i != crtNode && !mark[i] && d[i] > dTmp) {
^
user.cpp:70:17: error: ‘father’ was not declared in this scope
father[i] = crtNode;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !