Borderou de evaluare (job #2429140)
Utilizator | Data | 7 iunie 2019 23:41:34 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
ifstream fin("cautbin.in");
^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
ofstream fout("cautbin.out");
^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:73:5: error: 'fin' was not declared in this scope
fin>>n;
^~~
main.cpp:80:13: error: 'fout' was not declared in this scope
fout<<Tip1(numar,1,n)<<endl;
^~~~
main.cpp:80:36: error: 'endl' was not declared in this scope
fout<<Tip1(numar,1,n)<<endl;
^~~~
main.cpp:80:36: note: suggested alternative:
In file included from /usr/include/c++/6/istream:39:0,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
main.cpp:82:13: error: 'fout' was not declared in this scope
fout<<Tip2(numar,1,n)<<endl;
^~~~
main.cpp:82:36: error: 'endl' was not declared in this scope
fout<<Tip2(numar,1,n)<<endl;
^~~~
main.cpp:82:36: note: suggested alternative:
In file included from /usr/include/c++/6/istream:39:0,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
main.cpp:84:13: error: 'fout' was not declared in this scope
fout<<Tip3(numar,1,n)<<endl;
^~~~
main.cpp:84:36: error: 'endl' was not declared in this scope
fout<<Tip3(numar,1,n)<<endl;
^~~~
main.cpp:84:36: note: suggested alternative:
In file included from /usr/include/c++/6/istream:39:0,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
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 !