Borderou de evaluare (job #2290976)
Utilizator | Data | 27 noiembrie 2018 11:32:14 | |
---|---|---|---|
Problema | Scara 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Citire()':
main.cpp:27:2: error: 'ifstream' was not declared in this scope
{ifstream fin(InFile);
^~~~~~~~
main.cpp:27:2: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream'
typedef basic_ifstream<char> ifstream;
^~~~~~~~
main.cpp:28:2: error: 'fin' was not declared in this scope
fin>>H>>N>>M>>p;
^~~
main.cpp: In function 'void Afisare()':
main.cpp:34:1: error: 'ofstream' was not declared in this scope
ofstream fout(OutFile);
^~~~~~~~
main.cpp:34:1: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream'
typedef basic_ofstream<char> ofstream;
^~~~~~~~
main.cpp:35:1: error: 'fout' was not declared in this scope
fout<<setprecision(2)<<efmin<<endl;
^~~~
main.cpp:35:21: error: 'setprecision' was not declared in this scope
fout<<setprecision(2)<<efmin<<endl;
^
main.cpp:35:21: note: suggested alternative:
In file included from main.cpp:2:0:
/usr/include/c++/6/iomanip:195:3: note: 'std::setprecision'
setprecision(int __n)
^~~~~~~~~~~~
main.cpp:35:31: error: 'endl' was not declared in this scope
fout<<setprecision(2)<<efmin<<endl;
^~~~
main.cpp:35:31: 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 !