Borderou de evaluare (job #3176168)
Utilizator | Data | 26 noiembrie 2023 19:37:55 | |
---|---|---|---|
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:42:9: error: reference to 'rank' is ambiguous
42 | if (rank[nod1] == rank[nod2]) {
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/move.h:57,
from /usr/include/c++/12.2.1/bits/exception_ptr.h:43,
from /usr/include/c++/12.2.1/exception:168,
from /usr/include/c++/12.2.1/ios:39,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
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:20:17: note: 'int rank [1005]'
20 | int tati[1005], rank[1005];
| ^~~~
main.cpp:42:23: error: reference to 'rank' is ambiguous
42 | 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:20:17: note: 'int rank [1005]'
20 | int tati[1005], rank[1005];
| ^~~~
main.cpp:43:9: error: reference to 'rank' is ambiguous
43 | 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:20:17: note: 'int rank [1005]'
20 | 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:20:17: note: 'int rank [1005]'
20 | 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
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !