Borderou de evaluare (job #627687)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Concurs (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 ian. 2022 18:04:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream fin ("concurs.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream fout ("concurs.out")
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:5: error: 'fin' was not declared in this scope
9 | fin>>h;
| ^~~
main.cpp:10:5: error: 'fout' was not declared in this scope
10 | fout<<"Introduceti numarul de premianti"<<endl;
| ^~~~
main.cpp:10:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | fout<<"Introduceti numarul de premianti"<<endl;
| ^~~~
| std::endl
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iostream:39,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~