Borderou de evaluare (job #1082488)
Utilizator | Data | 14 ianuarie 2014 18:11:15 | |
---|---|---|---|
Problema | Lant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:1: error: ‘ofstream’ was not declared in this scope
ofstream fout(OutFile);
^
user.cpp:26:1: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:26:10: error: expected ‘;’ before ‘fout’
ofstream fout(OutFile);
^
user.cpp:30:1: error: ‘fout’ was not declared in this scope
fout<<nr[0]<<endl;
^
user.cpp:30:14: error: ‘endl’ was not declared in this scope
fout<<nr[0]<<endl;
^
user.cpp:30:14: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/istream:39:0,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:25:5: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
user.cpp: In function ‘void Citire()’:
user.cpp:45:2: error: ‘ifstream’ was not declared in this scope
{ifstream fin(InFile);
^
user.cpp:45:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:45:11: error: expected ‘;’ before ‘fin’
{ifstream fin(InFile);
^
user.cpp:47:2: error: ‘fin’ was not declared in this scope
fin>>k; fin.get();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !