Borderou de evaluare (job #1875212)
Utilizator | Data | 10 februarie 2017 20:44:14 | |
---|---|---|---|
Problema | Checkin | 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:20:1: error: ‘ofstream’ was not declared in this scope
ofstream fout (OutFile);
^
user.cpp:20:1: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:20:10: error: expected ‘;’ before ‘fout’
ofstream fout (OutFile);
^
user.cpp: In function ‘void citire()’:
user.cpp:39:2: error: ‘ifstream’ was not declared in this scope
ifstream fin (InFile);
^
user.cpp:39:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:39:11: error: expected ‘;’ before ‘fin’
ifstream fin (InFile);
^
user.cpp:40:2: error: ‘fin’ was not declared in this scope
fin>>n;
^
user.cpp: In function ‘void afisare()’:
user.cpp:59:1: error: ‘ofstream’ was not declared in this scope
ofstream fout(OutFile);
^
user.cpp:59:1: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:59:10: error: expected ‘;’ before ‘fout’
ofstream fout(OutFile);
^
user.cpp:60:1: error: ‘fout’ was not declared in this scope
fout<<TMin<<'\n';
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !