Borderou de evaluare (job #678017)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Flota | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 nov. 2022 09:37:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:1: error: 'UI' does not name a type; did you mean 'USI'?
14 | UI comp[NMAX + 1], sef[NMAX + 1];
| ^~
| USI
main.cpp:15:14: error: 'UI' was not declared in this scope; did you mean 'USI'?
15 | vector <pair<UI, PSI>> M, A;
| ^~
| USI
main.cpp:15:18: error: template argument 1 is invalid
15 | vector <pair<UI, PSI>> M, A;
| ^~~
main.cpp:15:21: error: template argument 1 is invalid
15 | vector <pair<UI, PSI>> M, A;
| ^~
main.cpp:15:21: error: template argument 2 is invalid
main.cpp: In function 'int Root(int)':
main.cpp:26:6: error: 'sef' was not declared in this scope
26 | if(sef[nod] == nod)
| ^~~
main.cpp:28:10: error: 'sef' was not declared in this scope
28 | return sef[nod] = Root(sef[nod]);
| ^~~
main.cpp: In function 'void Union(int, int)':
main.cpp:32:6: error: 'sef' was not declared in this scope
32 | if(sef[a] < sef[b])
| ^~~
main.cpp: In function 'void Kruskal()':
main.cpp:39:10: error: request for member 'begin' in 'M', which is of non-class type 'int'
39 | sort(M.begin(), M.end(), cmp);
| ^~~~~
main.cpp:39:21: error: request for member 'end' in 'M', which is of non-class type 'int'
39 | sort(M.begin(), M.end(), cmp);
| ^~~
main.cpp:42:5: error: 'sef' was not declared in this scope
42 | sef[i] = i;
| ^~~
main.cpp:44:16: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
44 | for(auto e : M) {
| ^
| std::begin
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/string:54,
from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/bits/locale_classes.h:40,
from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/bits/ios_base.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/ios:42,
from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.3.0/include/g++-v11/bits/range_access.h:108:37: note: 'std::begin' declared here
108 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~