Borderou de evaluare (job #3370374)

Utilizator lvncarsteaCarstea Lavinia Ionela Gabriela lvncarstea Data 25 octombrie 2026 19:58:53
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:27: error: size of array 'graf' is not an integral constant-expression 8 | vector<vector<int>> graf[nmax], graftr[nmax]; | ^~~~ main.cpp:8:41: error: size of array 'graftr' is not an integral constant-expression 8 | vector<vector<int>> graf[nmax], graftr[nmax]; | ^~~~ main.cpp:9:8: error: size of array 'd' is not an integral constant-expression 9 | int d[nmax], f[nmax]; | ^~~~ main.cpp:9:17: error: size of array 'f' is not an integral constant-expression 9 | int d[nmax], f[nmax]; | ^~~~ main.cpp:10:17: error: size of array 'st' is not an integral constant-expression 10 | vector<int> st[nmax]; | ^~~~ main.cpp:11:10: error: size of array 'viz' is not an integral constant-expression 11 | int viz[nmax], final[nmax]; | ^~~~ main.cpp:11:23: error: size of array 'final' is not an integral constant-expression 11 | int viz[nmax], final[nmax]; | ^~~~ main.cpp:12:18: error: size of array 'ctc' is not an integral constant-expression 12 | vector<int> ctc[nmax]; | ^~~~ main.cpp: In function 'void read()': main.cpp:17:14: error: request for member 'resize' in 'graf', which is of non-class type 'std::vector<std::vector<int> > [1]' 17 | graf.resize(noduri+1); | ^~~~~~ main.cpp:18:16: error: request for member 'resize' in 'graftr', which is of non-class type 'std::vector<std::vector<int> > [1]' 18 | graftr.resize(noduri+1); | ^~~~~~ main.cpp:19:13: error: request for member 'resize' in 'viz', which is of non-class type 'int [1]' 19 | viz.resize(noduri+1); | ^~~~~~ main.cpp:20:15: error: request for member 'resize' in 'final', which is of non-class type 'int [1]' 20 | final.resize(noduri+1); | ^~~~~~ main.cpp:24:34: error: no matching function for call to 'std::vector<std::vector<int> >::push_back(int&)' 24 | graf[x].push_back(y); | ~~~~~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/12.2.1/vector:64, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp: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 = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; value_type = std::vector<int>]' 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 'int' to 'const std::vector<std::vector<int> >::value_type&' {aka 'const std::vector<int>&'} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?