Borderou de evaluare (job #705633)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Monotonă (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2023 09:49:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:10: error: conflicting declaration 'std::ofstream cin'
6 | ofstream cin ("monotona.out");
| ^~~
main.cpp:5:10: note: previous declaration as 'std::ifstream cin'
5 | ifstream cin ("monotona.in");
| ^~~
main.cpp: In function 'int main()':
main.cpp:37:5: error: 'cout' was not declared in this scope
37 | cout << "da";
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:40:5: error: 'cout' was not declared in this scope
40 | cout << "nu";
| ^~~~
main.cpp:40:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?