Borderou de evaluare (job #3368342)
| Utilizator | Data | 14 octombrie 2026 11:35:17 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:13:12: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
13 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^~~~~~~~
| std::ifstream
In file included from /usr/include/c++/12.2.1/ios:38,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:13:22: error: 'fisier' was not declared in this scope
13 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^~~~~~
main.cpp:13:58: error: expected primary-expression before '&' token
13 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^
main.cpp:13:60: error: 'vectorul' was not declared in this scope
13 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^~~~~~~~
main.cpp:13:68: error: expression list treated as compound expression in initializer [-fpermissive]
13 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^
main.cpp:29:62: error: template placeholder type 'bitset<...auto...>' must be followed by a simple declarator-id
29 | void dfs(int numar, std::vector<std::vector<int>>& vectorul, std::bitset& bitsetul){
| ^~~
In file included from main.cpp:4:
/usr/include/c++/12.2.1/bitset:751:11: note: 'template<long unsigned int _Nb> class std::bitset' declared here
751 | class bitset
| ^~~~~~
main.cpp: In function 'void dfs(...)':
main.cpp:30:9: error: 'bitsetul' was not declared in this scope
30 | bitsetul.set(numar);
| ^~~~~~~~
main.cpp:30:22: error: 'numar' was not declared in this scope
30 | bitsetul.set(numar);
| ^~~~~
main.cpp:31:21: error: 'vectorul' was not declared in this scope
31 | for (auto x:vectorul[numar])
| ^~~~~~~~
main.cpp: At global scope:
main.cpp:38:6: error: variable or field 'numaraComponenteConexe' declared void
38 | void numaraComponenteConexe(ofstream& fisier,std::vector<std::vector<int>>& vectorul, std::bitset& bitsetul){
| ^~~~~~~~~~~~~~~~~~~~~~
main.cpp:38:29: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
38 | void numaraComponenteConexe(ofstream& fisier,std::vector<std::vector<int>>& vectorul, std::bitset& bitsetul){
| ^~~~~~~~
| std::ofstream
/usr/include/c++/12.2.1/iosfwd:165:41: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
