Borderou de evaluare (job #837177)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cate3cifre (clasa a 8-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 16 oct. 2025 14:58:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:4:5: error: 'ifstream' was not declared in this scope
4 | ifstream fin("cate3cifre.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
+++ |+#include <fstream>
1 | using namespace std;
main.cpp:5:5: error: 'ofstream' was not declared in this scope
5 | ofstream fout("cate3cifre.out");
| ^~~~~~~~
main.cpp:5:5: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
main.cpp:8:5: error: 'fin' was not declared in this scope
8 | fin>>c>>n;
| ^~~
main.cpp:30:13: error: 'fout' was not declared in this scope
30 | if(c==1)fout<<x<<endl;
| ^~~~
main.cpp:30:22: error: 'endl' was not declared in this scope
30 | if(c==1)fout<<x<<endl;
| ^~~~
main.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
main.cpp:35:9: error: 'fout' was not declared in this scope
35 | fout<<b1<<" "<<d1<<endl;
| ^~~~
main.cpp:35:28: error: 'endl' was not declared in this scope
35 | fout<<b1<<" "<<d1<<endl;
| ^~~~
main.cpp:35:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'