Borderou de evaluare (job #3287149)
Utilizator | Data | 16 martie 2025 17:29:16 | |
---|---|---|---|
Problema | 2SAT | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'stack' does not name a type; did you mean 'obstack'?
12 | stack<int> s;
| ^~~~~
| obstack
main.cpp:15:1: error: 'bitset' does not name a type
15 | bitset<2 * NMAX> visited;
| ^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:23:5: error: 'visited' was not declared in this scope
23 | visited[node] = 1;
| ^~~~~~~
main.cpp:29:5: error: 's' was not declared in this scope
29 | s.push(node);
| ^
main.cpp: In function 'int main()':
main.cpp:54:14: error: 'visited' was not declared in this scope
54 | if (!visited[i]) {
| ^~~~~~~
main.cpp:59:13: error: 's' was not declared in this scope
59 | while (!s.empty()) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !