Borderou de evaluare (job #3224183)
Utilizator | Data | 14 aprilie 2024 21:10:56 | |
---|---|---|---|
Problema | Bile | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int Find_root(int, int)':
main.cpp:9:16: error: cannot convert 'std::pair<int, int>' to 'int' in return
9 | return p1;
| ^~
| |
| std::pair<int, int>
main.cpp:10:14: error: expected ';' before 'root'
10 | make_pair root = Find_root(father[x][y],father[x][y]);
| ^~~~~
| ;
main.cpp:10:58: error: statement cannot resolve address of overloaded function
10 | make_pair root = Find_root(father[x][y],father[x][y]);
| ^
main.cpp:11:15: error: 'rootx' was not declared in this scope
11 | father[x]=rootx;
| ^~~~~
main.cpp:12:12: error: 'root' was not declared in this scope
12 | return root;
| ^~~~
main.cpp: In function 'void Union(int, int, int, int)':
main.cpp:15:10: error: 'r_x1' was not declared in this scope; did you mean 'x1'?
15 | pair(r_x1,r_y1) = a;
| ^~~~
| x1
main.cpp:15:15: error: 'r_y1' was not declared in this scope; did you mean 'y1'?
15 | pair(r_x1,r_y1) = a;
| ^~~~
| y1
main.cpp:15:23: error: 'a' was not declared in this scope
15 | pair(r_x1,r_y1) = a;
| ^
main.cpp:16:11: error: 'r_x2' was not declared in this scope; did you mean 'x2'?
16 | pair (r_x2,r_y2) = Find_root(x2,y2);
| ^~~~
| x2
main.cpp:16:16: error: 'r_y2' was not declared in this scope; did you mean 'y2'?
16 | pair (r_x2,r_y2) = Find_root(x2,y2);
| ^~~~
| y2
main.cpp:17:24: error: expected identifier before '(' token
17 | if(r_x1 == r_x2)&& (r_y1 == ry2) return;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !