Borderou de evaluare (job #621940)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Clasa2 | Compilator | cpp-32 |
| Rundă | lasm_21_12_2021_cl12 | Status | evaluat |
| Dată | 21 dec. 2021 14:03:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'char readChar()':
main.cpp:19:30: error: 'fin' was not declared in this scope
19 | fread( rbuf, 1, BUFSIZE, fin );
| ^~~
main.cpp: In function 'int main()':
main.cpp:56:3: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
56 | ifstream f( "clasa2.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:2:
/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:57:3: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
57 | ofstream g( "clasa2.out", "w" );
| ^~~~~~~~
| 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:2:
/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:85:12: error: 'fout' was not declared in this scope
85 | fprintf( fout, "%lld", sum );
| ^~~~
main.cpp:86:11: error: 'fin' was not declared in this scope
86 | fclose( fin );
| ^~~