Borderou de evaluare (job #3147880)
Utilizator | Data | 27 august 2023 19:38:50 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:61: error: 'stack' has not been declared
17 | void biconex(unsigned int, int[], int[], unsigned int&, stack<pair<unsigned int, unsigned int>>&, vector<unsigned int>&);
| ^~~~~
main.cpp:17:66: error: expected ',' or '...' before '<' token
17 | void biconex(unsigned int, int[], int[], unsigned int&, stack<pair<unsigned int, unsigned int>>&, vector<unsigned int>&);
| ^
main.cpp: In constructor 'Graph::Graph(std::string, bool)':
main.cpp:58:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (int i = 0; i < this->lista_vecini.size(); i ++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:60:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int j = 0; j < this->lista_vecini[i].size(); j++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:120:112: error: 'stack' has not been declared
120 | void Graph::biconex(unsigned int nod_curent, int nivel[], int nivel_interes[], unsigned int &nr_comp_biconexe, stack<pair<unsigned int, unsigned int>> &stiva,
| ^~~~~
main.cpp:120:117: error: expected ',' or '...' before '<' token
120 | void Graph::biconex(unsigned int nod_curent, int nivel[], int nivel_interes[], unsigned int &nr_comp_biconexe, stack<pair<unsigned int, unsigned int>> &stiva,
| ^
main.cpp: In member function 'void Graph::biconex(unsigned int, int*, int*, unsigned int&, int)':
main.cpp:127:13: error: 'stiva' was not declared in this scope
127 | stiva.push(make_pair(nod_curent,lista_vecini[nod_curent][i].first));
| ^~~~~
main.cpp:128:103: error: 'solutie' was not declared in this scope
128 | biconex(lista_vecini[nod_curent][i].first, nivel, nivel_interes, nr_comp_biconexe, stiva, solutie);
| ^~~~~~~
main.cpp:146:66: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
146 | } while (nod_stanga != nod_curent || nod_dreapta != lista_vecini[nod_curent][i].first);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::problemaBiconex()':
main.cpp:158:5: error: 'stack' was not declared in this scope
158 | stack <pair<unsigned int,unsigned int>> stiva;
| ^~~~~
main.cpp:7:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'?
6 | #include <unordered_map>
+++ |+#include <stack>
7 | using namespace std;
main.cpp:158:42: error: expected primary-expression before '>' token
158 | stack <pair<unsigned int,unsigned int>> stiva;
| ^~
main.cpp:158:45: error: 'stiva' was not declared in this scope
158 | stack <pair<unsigned int,unsigned int>> stiva;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !