Borderou de evaluare (job #714355)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dublă conversie (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 apr. 2023 19:32:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:1: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
9 | ifstream fin("dcov.in");
| ^~~~~~~~
| std::ifstream
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/ostream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iostream:39,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:10:1: error: 'fin' was not declared in this scope
10 | fin >> n;
| ^~~
main.cpp:19:1: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
19 | ofstream fout("dcov.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/ostream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iostream:39,
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;
| ^~~~~~~~
main.cpp:34:5: error: 'fout' was not declared in this scope
34 | fout << cif[i] ;
| ^~~~
main.cpp:36:1: error: 'fout' was not declared in this scope
36 | fout.close();
| ^~~~