Borderou de evaluare (job #3230223)
Utilizator | Data | 19 mai 2024 23:51:40 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int, bool)':
main.cpp:30:5: error: reference to 'stack' is ambiguous
30 | stack[++stack_top] = node;
| ^~~~~
In file included from /usr/include/c++/12.2.1/stack:61,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:89,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
main.cpp:14:5: note: 'int stack [100002]'
14 | int stack[NMAX + 2];
| ^~~~~
main.cpp:45:73: error: reference to 'stack' is ambiguous
45 | while (stack_top > 0 && stack[stack_top] != adjNode) {
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
main.cpp:14:5: note: 'int stack [100002]'
14 | int stack[NMAX + 2];
| ^~~~~
main.cpp:46:65: error: reference to 'stack' is ambiguous
46 | fout << stack[stack_top] << " ";
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
main.cpp:14:5: note: 'int stack [100002]'
14 | int stack[NMAX + 2];
| ^~~~~
main.cpp:62:21: error: reference to 'stack' is ambiguous
62 | fout << stack[stack_top] << " ";
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_stack.h:99:11: note: candidates are: 'template<class _Tp, class _Sequence> class std::stack'
99 | class stack
| ^~~~~
main.cpp:14:5: note: 'int stack [100002]'
14 | int stack[NMAX + 2];
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !