Borderou de evaluare (job #640712)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Carte (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2022 22:40:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:4:9: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
4 | ifstream in("carte.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:5:9: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
5 | ofstream out("carte.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:165:41: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:7:9: error: 'in' was not declared in this scope; did you mean 'n'?
7 | in>>n;
| ^~
| n
main.cpp:29:9: error: 'out' was not declared in this scope
29 | out<<zi<<" "<<(zimaxi+1)<<" "<<maxi;
| ^~~