Borderou de evaluare (job #597953)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Char (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mai 2021 23:45:14 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void afis()':
main.cpp:7:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
7 | ofstream fout("char.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/iosfwd:165:34: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:8:5: error: 'fout' was not declared in this scope
8 | fout<<nr<<'\n'<<m;
| ^~~~
main.cpp: In function 'void cit()':
main.cpp:16:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
16 | ifstream fin("char.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/iosfwd:162:34: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:17:5: error: 'fin' was not declared in this scope
17 | fin>>n;
| ^~~