Borderou de evaluare (job #3039177)
Utilizator | Data | 28 martie 2023 11:37:43 | |
---|---|---|---|
Problema | Custi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream fin("custi.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream fout("custi.out");
| ^~~~~~~~
main.cpp: In function 'int main(int, char**)':
main.cpp:11:9: error: 'fin' was not declared in this scope
11 | fin>>n;
| ^~~
main.cpp:25:17: error: 'fout' was not declared in this scope
25 | fout<<nr<<endl;
| ^~~~
main.cpp:25:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
25 | fout<<nr<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/12.2.1/istream:39,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/ostream:688:5: note: 'std::endl' declared here
688 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !