Borderou de evaluare (job #3318558)
| Utilizator | Data | 28 octombrie 2025 13:11:10 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream cin("dfs.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream cout("dfs.out");
| ^~~~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:16:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for (int i=0 ; i<L[nod].size(); i++)
| ~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:25:5: error: 'cin' was not declared in this scope
25 | cin>>n>>m;
| ^~~
main.cpp:7:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
6 | #include <vector>
+++ |+#include <iostream>
7 | using namespace std;
main.cpp:51:5: error: 'cout' was not declared in this scope
51 | cout<<cc;
| ^~~~
main.cpp:51:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
