Borderou de evaluare (job #2788068)
Utilizator | Data | 24 octombrie 2021 20:57:21 | |
---|---|---|---|
Problema | Roy-Floyd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:14: error: conflicting declaration 'std::ofstream cin'
9 | ofstream cin ("rf.out");
| ^~~
main.cpp:8:14: note: previous declaration as 'std::ifstream cin'
8 | ifstream cin ("rf.in");
| ^~~
main.cpp:41:17: error: 'cout' was not declared in this scope
41 | cout << dist[k][i][j] << " ";
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:42:13: error: 'cout' was not declared in this scope
42 | cout << "\n";
| ^~~~
main.cpp:42: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 !