Borderou de evaluare (job #821427)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Parola (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 apr. 2025 13:42:23 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:14: error: variable 'std::ifstream fin' has initializer but incomplete type
3 | ifstream fin ( "parola.in" );
| ^
main.cpp:2:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
1 | #include <iostream>
+++ |+#include <fstream>
2 | using namespace std;
main.cpp:4:15: error: variable 'std::ofstream fout' has initializer but incomplete type
4 | ofstream fout ( "parola.out" );
| ^
main.cpp:4:15: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
main.cpp: In function 'int main()':
main.cpp:21:7: warning: unused variable 'cnt' [-Wunused-variable]
21 | int cnt = 1;
| ^~~