Borderou de evaluare (job #3293158)

Utilizator laurentiu.maticaMatica Laurentiu-Andrei laurentiu.matica Data 10 aprilie 2025 14:50:36
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: 'stack' does not name a type; did you mean 'obstack'? 10 | stack<int>q; | ^~~~~ | obstack main.cpp: In function 'void DFS(int)': main.cpp:16:5: error: 'q' was not declared in this scope 16 | q.push(nod); | ^ main.cpp: In function 'int main()': main.cpp:38:12: error: 'q' was not declared in this scope 38 | while(!q.empty()) { | ^ main.cpp:48:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for(int j=0;j<CTC[i].size();j++) | ~^~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?