Borderou de evaluare (job #1705437)

Utilizator elena.marinicaMarinica Elena-Georgiana elena.marinica Data 20 mai 2016 16:39:01
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:56: error: ‘stack’ has not been declared void DFS(int node, std::vector<int>g[], int visited[], stack<int>& s) { ^ user.cpp:7:61: error: expected ‘,’ or ‘...’ before ‘<’ token void DFS(int node, std::vector<int>g[], int visited[], stack<int>& s) { ^ user.cpp: In function ‘void DFS(int, std::vector<int>*, int*, int)’: user.cpp:13:32: error: ‘s’ was not declared in this scope DFS(g[node][i], g, visited, s); ^ user.cpp:16:2: error: ‘s’ was not declared in this scope s.push(node); ^ user.cpp: In function ‘int main()’: user.cpp:32:11: error: expected primary-expression before ‘,’ token memset(tm, 0, sizeof(int) * (n + 1)); ^ user.cpp:41:2: error: ‘stack’ is not a member of ‘std’ std::stack<int> s; ^ user.cpp:41:13: error: expected primary-expression before ‘int’ std::stack<int> s; ^ user.cpp:41:13: error: expected ‘;’ before ‘int’ user.cpp:45:26: error: ‘s’ was not declared in this scope DFS(i, graf, visited, s); ^ user.cpp:50:10: error: ‘s’ was not declared in this scope while (!s.empty()) { ^ user.cpp:26:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &n, &m); ^ user.cpp:35:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &x, &y); ^

Ceva nu functioneaza?