Borderou de evaluare (job #704330)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cezar (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji1 | Status | evaluat |
Dată | 11 mar. 2023 20:02:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:1: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
6 | ifstream fin("cezar.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:7:1: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
7 | ofstream fout("cezar.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:8:9: error: 'fin' was not declared in this scope
8 | while(! fin.eof()){
| ^~~
main.cpp:10:18: error: 'fout' was not declared in this scope
10 | if(c == 'z'){fout << a ;}
| ^~~~
main.cpp:10:26: error: 'a' was not declared in this scope
10 | if(c == 'z'){fout << a ;}
| ^
main.cpp:11:15: error: 'fout' was not declared in this scope
11 | else {fout << (char)(c + 1) ;}
| ^~~~
main.cpp:14:1: error: 'fin' was not declared in this scope
14 | fin.close();
| ^~~
main.cpp:15:1: error: 'fout' was not declared in this scope
15 | fout.close();
| ^~~~