Borderou de evaluare (job #2969113)
Utilizator | Data | 22 ianuarie 2023 16:29:21 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream cin("DFS.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream cout("DFS.out");
| ^~~~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:20:22: error: 'True' was not declared in this scope
20 | visited[node] = True;
| ^~~~
main.cpp:21:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (int i = 0; i < G[node].size(); ++i){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:32:6: error: 'cin' was not declared in this scope
32 | cin >> n >> m;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <vector>
+++ |+#include <iostream>
3 |
main.cpp:51:6: error: 'cout' was not declared in this scope
51 | cout << cnt;
| ^~~~
main.cpp:51:6: 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 !