Borderou de evaluare (job #3177355)

Utilizator FoxBlood001Iulian FoxBlood001 Data 29 noiembrie 2023 07:36:29
Problema Rusuoaica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:71:22: error: 'a' was not declared in this scope 71 | fin >> n >> m >> a; | ^ main.cpp:80:16: error: 'x' was not declared in this scope 80 | fin >> x >> y >> z; | ^ main.cpp:80:21: error: 'y' was not declared in this scope 80 | fin >> x >> y >> z; | ^ main.cpp:80:26: error: 'z' was not declared in this scope 80 | fin >> x >> y >> z; | ^ main.cpp:83:24: error: no matching function for call to 'std::vector<tip>::push_back(<brace-enclosed initializer list>)' 83 | edges.push_back({x,y,z,i}); | ~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = tip; _Alloc = std::allocator<tip>; value_type = tip]' 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<tip>::value_type&' {aka 'const tip&'} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = tip; _Alloc = std::allocator<tip>; value_type = tip]' 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<tip>::value_type&&' {aka 'tip&&'} 1293 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:88:24: error: no matching function for call to 'std::vector<tip>::push_back(<brace-enclosed initializer list>)' 88 | edges.push_back({1, i, a, m + 1}); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = tip; _Alloc = std::allocator<tip>; value_type = tip]' 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<tip>::value_type&' {aka 'const tip&'} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = tip; _Alloc = std::allocator<tip>; value_type = tip]' 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<tip>::value_type&&' {aka 'tip&&'} 1293 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?