Borderou de evaluare (job #3176165)
Utilizator | Data | 26 noiembrie 2023 19:32:18 | |
---|---|---|---|
Problema | Oracol | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void join(int, int)':
main.cpp:41:9: error: reference to 'rank' is ambiguous
41 | if (rank[nod1] == rank[nod2]){
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/stl_pair.h:60,
from /usr/include/c++/12.2.1/bits/stl_algobase.h:64,
from /usr/include/c++/12.2.1/bits/specfun.h:45,
from /usr/include/c++/12.2.1/cmath:1935,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from main.cpp:1:
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:19:17: note: 'int rank [1005]'
19 | int tati[1005], rank[1005];
| ^~~~
main.cpp:41:23: error: reference to 'rank' is ambiguous
41 | if (rank[nod1] == rank[nod2]){
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:19:17: note: 'int rank [1005]'
19 | int tati[1005], rank[1005];
| ^~~~
main.cpp:42:13: error: reference to 'rank' is ambiguous
42 | rank[nod1]++, tati[nod2] = nod1;
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:19:17: note: 'int rank [1005]'
19 | int tati[1005], rank[1005];
| ^~~~
main.cpp:45:14: error: reference to 'rank' is ambiguous
45 | else if (rank[nod1] > rank[nod2]){
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:19:17: note: 'int rank [1005]'
19 | int tati[1005], rank[1005];
| ^~~~
main.cpp:45:27: error: reference to 'rank' is ambiguous
45 | else if (rank[nod1] > rank[nod2]){
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:19:17: note: 'int rank [1005]'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !