Borderou de evaluare (job #678225)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 nov. 2022 14:22:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include fstream>
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:7:5: error: 'ifstream' was not declared in this scope
7 | ifstream fin("cautbin.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 | #include fstream>
main.cpp:8:5: error: 'ofstream' was not declared in this scope
8 | ofstream fin("cautbin.out");
| ^~~~~~~~
main.cpp:8:5: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:10:5: error: 'fin' was not declared in this scope
10 | fin>>n;
| ^~~
main.cpp:35:13: error: 'fout' was not declared in this scope
35 | fout<<s+1;
| ^~~~
main.cpp:50:13: error: 'fout' was not declared in this scope
50 | fout<<s+1;
| ^~~~
main.cpp:65:13: error: 'fout' was not declared in this scope
65 | fout<<s+2;
| ^~~~
main.cpp:67:9: error: 'fout' was not declared in this scope
67 | fout<<endl;
| ^~~~
main.cpp:67:15: error: 'endl' was not declared in this scope
67 | fout<<endl;
| ^~~~
main.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | #include fstream>