Borderou de evaluare (job #704285)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Carte (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 mar. 2023 19:20:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:2:12: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
2 | int main(){ofstream a("carte.out");}
| ^~~~~~~~
| std::ofstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iosfwd:165:41: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~