Borderou de evaluare (job #2843020)
Utilizator | Data | 1 februarie 2022 20:54:44 | |
---|---|---|---|
Problema | Diametrul unui arbore | 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 fin("darb.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream fout("darb.out");
| ^~~~~~~~
main.cpp: In function 'int bfs(int, int&)':
main.cpp:18:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < v[last].size(); ++i) {
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:32:2: error: 'fin' was not declared in this scope; did you mean 'sin'?
32 | fin.tie(0);
| ^~~
| sin
main.cpp:42:5: error: 'fout' was not declared in this scope
42 | fout << distance + 1;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !