Borderou de evaluare (job #2943569)
Utilizator | Data | 21 noiembrie 2022 11:28:17 | |
---|---|---|---|
Problema | XCopy | 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:47:11: error: conflicting declaration 'std::ofstream cin'
47 | ofstream cin("xcopy.out");
| ^~~
main.cpp:9:14: note: previous declaration as 'std::ifstream cin'
9 | ifstream cin("xcopy.in");
| ^~~
main.cpp:51:13: error: 'cout' was not declared in this scope
51 | cout<< a[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:52:9: error: 'cout' was not declared in this scope
52 | cout<< "\n";
| ^~~~
main.cpp:52:9: 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 !