Borderou de evaluare (job #3176136)
Utilizator | Data | 26 noiembrie 2023 19:02:20 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:28:8: error: 'edge' was not declared in this scope
28 | vector<edge>input;
| ^~~~
main.cpp:28:12: error: template argument 1 is invalid
28 | vector<edge>input;
| ^
main.cpp:28:12: error: template argument 2 is invalid
main.cpp: In function 'int main()':
main.cpp:73:19: error: request for member 'push_back' in 'input', which is of non-class type 'int'
73 | input.push_back({i, j, dst(v[i], v[j])});
| ^~~~~~~~~
main.cpp:77:16: error: request for member 'begin' in 'input', which is of non-class type 'int'
77 | sort(input.begin(), input.end());
| ^~~~~
main.cpp:77:31: error: request for member 'end' in 'input', which is of non-class type 'int'
77 | sort(input.begin(), input.end());
| ^~~
main.cpp:79:26: error: 'begin' was not declared in this scope
79 | for (const edge& x : input) {
| ^~~~~
main.cpp:79:26: note: suggested alternatives:
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:95,
from main.cpp:5:
/usr/include/c++/12.2.1/valarray:1226:5: note: 'std::begin'
1226 | begin(const valarray<_Tp>& __va) noexcept
| ^~~~~
In file included from /usr/include/c++/12.2.1/string_view:50,
from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54:
/usr/include/c++/12.2.1/bits/ranges_base.h:566:44: note: 'std::ranges::__cust::begin'
566 | inline constexpr __cust_access::_Begin begin{};
| ^~~~~
In file included from /usr/include/c++/12.2.1/filesystem:46,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:129:
/usr/include/c++/12.2.1/bits/fs_dir.h:576:3: note: 'std::filesystem::__cxx11::begin'
576 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_iterator_base_types.h:71,
from /usr/include/c++/12.2.1/bits/stl_algobase.h:65,
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:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !