Borderou de evaluare (job #723431)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Char (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 iun. 2023 12:17:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:49:1: error: 'ifstream' does not name a type
49 | ifstream cin("char.in");
| ^~~~~~~~
main.cpp:50:1: error: 'ofstream' does not name a type
50 | ofstream cout("char.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:68:5: error: 'cin' was not declared in this scope
68 | cin >> n;
| ^~~
main.cpp:49:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
48 | #include <algorithm>
+++ |+#include <iostream>
49 | ifstream cin("char.in");
main.cpp:77:5: error: 'cout' was not declared in this scope
77 | cout <<f[litera- '0']<<endl;
| ^~~~
main.cpp:77:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?