Borderou de evaluare (job #3368339)
| Utilizator | Data | 14 octombrie 2026 11:30:55 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream f("dfs.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream g("dfs.out");
| ^~~~~~~~
main.cpp:10:12: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
10 | 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/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
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:10:22: error: 'fisier' was not declared in this scope
10 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^~~~~~
main.cpp:10:58: error: expected primary-expression before '&' token
10 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^
main.cpp:10:60: error: 'vectorul' was not declared in this scope
10 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^~~~~~~~
main.cpp:10:68: error: expression list treated as compound expression in initializer [-fpermissive]
10 | int citire(ifstream& fisier,std::vector<std::vector<int>>& vectorul){
| ^
main.cpp:26:62: error: template placeholder type 'bitset<...auto...>' must be followed by a simple declarator-id
26 | void dfs(int numar, std::vector<std::vector<int>>& vectorul, std::bitset& bitsetul){
| ^~~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:66:
/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:27:9: error: 'bitsetul' was not declared in this scope
27 | bitsetul.set(numar);
| ^~~~~~~~
main.cpp:27:22: error: 'numar' was not declared in this scope
27 | bitsetul.set(numar);
| ^~~~~
main.cpp:28:21: error: 'vectorul' was not declared in this scope
28 | for (auto x:vectorul[numar])
| ^~~~~~~~
main.cpp: At global scope:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
