Borderou de evaluare (job #761072)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cezar (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 feb. 2024 16:05:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream cin("cezar.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream cout("cezar.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:14:9: error: 'cin' was not declared in this scope
14 | cin.get(ch);
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <fstream>
+++ |+#include <iostream>
3 |
main.cpp:20:25: error: 'cout' was not declared in this scope
20 | cout<<'a';
| ^~~~
main.cpp:20:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:24:25: error: 'cout' was not declared in this scope
24 | cout<<(char)(ch+1);
| ^~~~
main.cpp:24:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?