Borderou de evaluare (job #2928554)

Utilizator radubuzas08Buzas Radu radubuzas08 Data 23 octombrie 2022 12:56:53
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:17:76: error: 'stack' has not been declared 17 | void dfs(vector<vector<int>> & graph, vector<int> & id, vector<int> & low, stack<int> & s, vector<bool> &inStack, vector<vector<int>> & sol, int k){ | ^~~~~ main.cpp:17:81: error: expected ',' or '...' before '<' token 17 | void dfs(vector<vector<int>> & graph, vector<int> & id, vector<int> & low, stack<int> & s, vector<bool> &inStack, vector<vector<int>> & sol, int k){ | ^ main.cpp: In function 'void dfs(std::vector<std::vector<int> >&, std::vector<int>&, std::vector<int>&, int)': main.cpp:18:5: error: 'inStack' was not declared in this scope 18 | inStack[k] = low[k] = id[k] = incide++; | ^~~~~~~ main.cpp:18:13: error: 'k' was not declared in this scope 18 | inStack[k] = low[k] = id[k] = incide++; | ^ main.cpp:19:5: error: 's' was not declared in this scope 19 | s.push(k); | ^ main.cpp:22:45: error: 'sol' was not declared in this scope 22 | dfs(graph, id, low, s, inStack, sol, x), low[k] = min(low[k], low[x]); | ^~~ main.cpp:31:9: error: 'sol' was not declared in this scope 31 | sol.push_back(tmp); | ^~~ main.cpp: In function 'int main()': main.cpp:42:5: error: 'stack' was not declared in this scope 42 | stack<int> s; | ^~~~~ main.cpp:8:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'? 7 | #include <algorithm> +++ |+#include <stack> 8 | using namespace std; main.cpp:42:11: error: expected primary-expression before 'int' 42 | stack<int> s; | ^~~ main.cpp:51:32: error: 's' was not declared in this scope 51 | dfs(graph, id, low,s, boolV, sol, i); | ^ Non zero exit status: 1

Ceva nu functioneaza?