Borderou de evaluare (job #2934229)
Utilizator | Data | 5 noiembrie 2022 17:51:21 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:10: error: conflicting declaration 'std::ofstream cin'
6 | ofstream cin("sortaret.out");
| ^~~
main.cpp:5:10: note: previous declaration as 'std::ifstream cin'
5 | ifstream cin("sortaret.in");
| ^~~
main.cpp: In function 'void bfs()':
main.cpp:17:17: error: 'cout' was not declared in this scope
17 | cout<<x<<" ";
| ^~~~
main.cpp:4:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include<queue>
+++ |+#include <iostream>
4 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:36:13: error: 'cout' was not declared in this scope
36 | cout<<i<<" ";
| ^~~~
main.cpp:36:13: 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 !