Borderou de evaluare (job #3258012)

Utilizator tonealexandruTone Alexandru tonealexandru Data 20 noiembrie 2024 15:48:25
Problema Zoro Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:8: error: 'coord' was not declared in this scope 5 | vector<coord> v; | ^~~~~ main.cpp:5:13: error: template argument 1 is invalid 5 | vector<coord> v; | ^ main.cpp:5:13: error: template argument 2 is invalid main.cpp: In function 'int main()': main.cpp:29:25: error: request for member 'push_back' in 'v', which is of non-class type 'int' 29 | if(a < s) v.push_back({a, i, j}); | ^~~~~~~~~ main.cpp:34:12: error: request for member 'begin' in 'v', which is of non-class type 'int' 34 | sort(v.begin(), v.end(), cmp); | ^~~~~ main.cpp:34:23: error: request for member 'end' in 'v', which is of non-class type 'int' 34 | sort(v.begin(), v.end(), cmp); | ^~~ main.cpp:35:18: error: 'begin' was not declared in this scope 35 | for(auto k : v) | ^ main.cpp:35:18: 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:1: /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?